IsVectorParallelTo

Compares two vectors to see if they are parallel.

Syntax

rhinoscriptsyntax.IsVectorParallelTo (vector1, vector2)

rhinoscript.pointvector.IsVectorParallelTo (vector1, vector2)

Parameters

vector1

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

vector2

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

Returns

Number

The result of the comparison if successful. The possible results are as follows:

Value

Description

-1

The vectors are anti-parallel.

0

The vectors are not parallel.

1

The vectors are parallel.

None

On error.

Example

import rhinoscriptsyntax as rs

vector1 = (1,0,0)

vector2 = (0,1,0)

print rs.IsVectorParallelTo( vector1, vector2 )

Also See

IsVectorPerpendicularTo

IsVectorTiny

IsVectorZero