VectorCompare

Compares two 3-D vectors.

Syntax

rhinoscriptsyntax.VectorCompare (vector1, vector2)

rhinoscript.pointvector.VectorCompare (vector1, vector2)

Parameters

vector1

Required.  List of 3 numbers, Point3d, or Vector3d.  The first 3-D vector to compare.

vector2

Required.  List of 3 numbers, Point3d, or Vector3d.  The second 3-D vector to compare.

Returns

-1

If vector1 is less than vector2.

0

If vector1 is equal to vector2.

1

If vector1 is greater than vector2.

None

On error.

Example

import rhinoscriptsyntax as rs

vector1 = (1,0,0)

vector2 = (0,1,0)

rc = rs.VectorCompare(vector1 , vector2)

print rc

Also See

IsVectorTiny

IsVectorZero

VectorCreate