TwoDLocationCompareTo(ILocation, Double) Method

like IComaparable, but with tolerance for coordinate comparison as an argument. Hierarchical calls to the CompareTo methods for topo ID, then x1, then y1, x2, y2 comparison (but not Info). String comparisons are case-insensitive and culture-invariant.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public int CompareTo(
	ILocation other,
	double tolerance
)

Parameters

other  ILocation
the location to compare to
tolerance  Double
the tolerance [m] within which chainages are taken as equal

Return Value

Int32
lexical comparison result

See Also