Skip to content

M_Rhino_Geometry_Vector3d_CompareTo

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

Vector3d.CompareTo Method

Compares this Vector3d with another Vector3d. Component evaluation priority is first X, then Y, then Z.

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

Syntax

C#

public int CompareTo(
	Vector3d other
)

VB

Public Function CompareTo ( 
	other As Vector3d
) As Integer

Parameters

 

other
Type: Rhino.Geometry.Vector3d
The other Vector3d to use in comparison.

Return Value

Type: Int32
0: if this is identical to other

-1: if this.X < other.X

-1: if this.X == other.X and this.Y < other.Y

-1: if this.X == other.X and this.Y == other.Y and this.Z < other.Z

+1: otherwise.

Implements

IComparable(T).CompareTo(T)

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Vector3d Structure
Rhino.Geometry Namespace

Clone this wiki locally