Class Point

Namespace
Cratis.Geospatial
Assembly
Cratis.Fundamentals.dll

Represents a geographic point with longitude and latitude.

public record Point : IEquatable<Point>
Inheritance
Point
Implements
Inherited Members
Extension Methods

Constructors

Point(Point)

protected Point(Point original)

Parameters

original Point

Point(double, double)

Represents a geographic point with longitude and latitude.

public Point(double Longitude, double Latitude)

Parameters

Longitude double

The longitude of the point.

Latitude double

The latitude of the point.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Latitude

The latitude of the point.

public double Latitude { get; init; }

Property Value

double

Longitude

The longitude of the point.

public double Longitude { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double)

public void Deconstruct(out double Longitude, out double Latitude)

Parameters

Longitude double
Latitude double

Equals(Point?)

public virtual bool Equals(Point? other)

Parameters

other Point

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Point?, Point?)

public static bool operator ==(Point? left, Point? right)

Parameters

left Point
right Point

Returns

bool

operator !=(Point?, Point?)

public static bool operator !=(Point? left, Point? right)

Parameters

left Point
right Point

Returns

bool