Measures the angle between two lines.
rhinoscriptsyntax.Angle2 (line1, line2)
rhinoscript.utility.Angle2 (line1, line2)
line1 |
Required. List of 6 numbers or 2 Point3d. |
line2 |
Required. List of 6 numbers or 2 Point3d. |
Tuple |
A tuple containing the following elements if successful.
|
||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
point1 = rs.GetPoint("Start of first line")
point2 = rs.GetPoint("End of first line", point1)
point3 = rs.GetPoint("Start of second line")
point4 = rs.GetPoint("End of second line", point3)
angle = rs.Angle2( (point1, point2), (point3, point4))
if angle: print "Angle: ", angle