Table of Contents

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

X double

The X coordinate (easting).

Y double

The Y coordinate (northing).

Z double

The height; System.Double.NaN means "no Z".

M double

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

bool

HasZ

Whether the coordinate carries a height.

public bool HasZ { get; }

Property Value

bool

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

double

X

The X coordinate (easting).

public double X { get; init; }

Property Value

double

Y

The Y coordinate (northing).

public double Y { get; init; }

Property Value

double

Z

The height; System.Double.NaN means "no Z".

public double Z { get; init; }

Property Value

double