Verifies that a vector is very short, or tiny - the x,y,z elements are less than or equal to 1.0e-12.
rhinoscriptsyntax.IsVectorTiny (vector)
rhinoscript.pointvector.IsVectorTiny (vector)
vector |
Required. List of 3 numbers, Point3d, or Vector3d. The 3-D vector to test. |
Boolean |
True if the vector is tiny, otherwise False, if successful. |
None |
On error. |
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."