Measures the angle between two points.
rhinoscriptsyntax.Angle (point1, point2, plane=True)
rhinoscript.utility.Angle (point1, point2, plane=True)
point1 |
Required. List of 3 numbers or Point3d. The first 3-D point. |
point2 |
Required. List of 3 numbers or Point3d. The second 3-D point. |
plane |
Optional. Boolean or Plane. If True, the angle calculation is based on the world coordinate system. If False, the angle calculation is based on the active construction plane. If an actual Plane is passed, then this plane is used for the angle calculation |
Tuple |
A tuple containing the following elements if successful.
|
||||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
point1 = rs.GetPoint("First point")
if point1:
point2 = rs.GetPoint("Second point")
if point2:
angle = rs.Angle(point1, point2)
if angle: print "Angle: ", angle[0]