Angle2

Measures the angle between two lines.

Syntax

rhinoscriptsyntax.Angle2 (line1, line2)

rhinoscript.utility.Angle2 (line1, line2)

Parameters

line1

Required.  List of 6 numbers or 2 Point3d.

line2

Required.  List of 6 numbers or 2 Point3d.

Returns

Tuple

A tuple containing the following elements if successful.

0

The angle in degrees.

1

The reflex angle in degrees.

None

If not successful, or on error.

Example

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

Also See

Angle

Distance