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
originalPoint
Point(double, double)
Represents a geographic point with longitude and latitude.
public Point(double Longitude, double Latitude)
Parameters
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Latitude
The latitude of the point.
public double Latitude { get; init; }
Property Value
Longitude
The longitude of the point.
public double Longitude { get; init; }
Property Value
Methods
Deconstruct(out double, out double)
public void Deconstruct(out double Longitude, out double Latitude)
Parameters
Equals(Point?)
public virtual bool Equals(Point? other)
Parameters
otherPoint
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Point?, Point?)
public static bool operator ==(Point? left, Point? right)
Parameters
Returns
operator !=(Point?, Point?)
public static bool operator !=(Point? left, Point? right)