namespace NaturalNeighbor { /// /// Delaunay graph node identifier /// public struct NodeId { /// /// Constructs new node id /// /// node index public NodeId(int value) { _value = value; } /// /// Returns the underlying ordinal value /// /// public static explicit operator int(NodeId id) { return id._value; } /// /// String representation of node id /// /// string public override string ToString() { return $"NodeId={_value}"; } internal bool IsSentinel => _value < 4; readonly int _value; } }