Skip to content

M_Rhino_Geometry_Interval_CompareTo

Will Pearson edited this page Aug 12, 2016 · 2 revisions

Interval.CompareTo Method

Compares this Interval with another interval. The lower bound has first evaluation priority.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public int CompareTo(
	Interval other
)

VB

Public Function CompareTo ( 
	other As Interval
) As Integer

Parameters

 

other
Type: Rhino.Geometry.Interval
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

IComparable(T).CompareTo(T)

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Interval Structure
Rhino.Geometry Namespace

Clone this wiki locally