Click or drag to resize

IntervalCompareTo Method

Compares this Interval with another interval.

The lower bound has first evaluation priority.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int CompareTo(
	Interval other
)

Parameters

other
Type: Rhino.GeometryInterval
The other Interval to compare with.

Return Value

Type: Int32

0: if this is identical to other

-1: if this[0] < other[0]

+1: if this[0] > other[0]

-1: if this[0] == other[0] and this[1] < other[1]

+1: if this[0] == other[0] and this[1] > other[1]

.

Implements

IComparableTCompareTo(T)
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also