Struct Coordinate
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Core.dll
A coordinate as a value. Algorithms pass results to the SpatialNET.IGeometryFactory exclusively as coordinates (ADR 0004).
public readonly record struct Coordinate : IEquatable<Coordinate>Implements
Inherited Members
Constructors
Coordinate(double, double, double, double)
A coordinate as a value. Algorithms pass results to the SpatialNET.IGeometryFactory exclusively as coordinates (ADR 0004).
public Coordinate(double X, double Y, double Z = NaN, double M = NaN)Parameters
Xdouble-
The X coordinate (easting).
Ydouble-
The Y coordinate (northing).
Zdouble-
The height; System.Double.NaN means "no Z".
Mdouble-
The measure; System.Double.NaN means "no M". M is carried and interpolated like Z but never influences a computation (ADR 0015).
Properties
HasM
Whether the coordinate carries a measure.
public bool HasM { get; }Property Value
HasZ
Whether the coordinate carries a height.
public bool HasZ { get; }Property Value
M
The measure; System.Double.NaN means "no M". M is carried and interpolated like Z but never influences a computation (ADR 0015).
public double M { get; init; }Property Value
X
The X coordinate (easting).
public double X { get; init; }Property Value
Y
The Y coordinate (northing).
public double Y { get; init; }Property Value
Z
The height; System.Double.NaN means "no Z".
public double Z { get; init; }