IsVectorTiny

Verifies that a vector is very short, or tiny - the x,y,z  elements are less than or equal to 1.0e-12.

Syntax

rhinoscriptsyntax.IsVectorTiny (vector)

rhinoscript.pointvector.IsVectorTiny (vector)

Parameters

vector

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

Returns

Boolean

True if the vector is tiny, otherwise False, if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

pt1 = rs.GetPoint("First point")

pt2 = rs.GetPoint("Next point")

vector = pt2 - pt1

if rs.IsVectorTiny(vector):

    print "The vector is tiny."

else:

    print "The vector is not tiny."

Also See

IsVectorZero

VectorCreate