Angle

Measures the angle between two points.

Syntax

rhinoscriptsyntax.Angle (point1, point2, plane=True)

rhinoscript.utility.Angle (point1, point2, plane=True)

Parameters

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

Returns

Tuple

A tuple containing the following elements if successful.

0

The X,Y angle in degrees.

1

The elevation.

2

The  delta in the X direction.

3

The  delta in the Y direction.

4

The  delta in the Z direction.

None

If not successful, or on error.

Example

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]

Also See

Angle2

Distance