ANGLE function

Synopsis
This function returns the angle formed by the X-axis and the line segment defined by 2 points. The line segment is directional and the X-axis begins at the start point.
Variations
ANGLE(StartPoint, EndPoint)
Returns the angle between the X-axis and the line formed by 2 Point objects.
Parameters
StartPoint

Specifies the start point of the line.

Supported types: Point.
EndPoint

Specifies the end point of the line.

Supported types: Point.
Returns
Returned types: Numeric.
Examples
1.

The following example generates point objects through operator inputs in the operator view.

ANGLE(OperatorInputs.Inputs("Points").Points(1).WorldPoint, OperatorInputs.Inputs("Points").Points(2).WorldPoint)
ANGLE(StartPointX, StartPointY, EndPointX, EndPointY)
Returns the angle between the X-axis and the line formed by 2 pairs of coordinates.
Parameters
StartPointX

Specifies the X-coordinate of the start point of the line.

Supported types: Numeric.
StartPointY

Specifies the Y-coordinate of the start point of the line.

Supported types: Numeric.
EndPointX

Specifies the X-coordinate of the end point of the line.

Supported types: Numeric.
EndPointY

Specifies the Y-coordinate of the end point of the line.

Supported types: Numeric.
Returns
Returned types: Numeric.
Examples
1.

The following example returns 315, which is the angle formed from the line segment [(1,1),(3,3)] and the X-axis beginning at (1,1).

ANGLE(1,1,3,3)
2.

The following example returns 135, which is the angle formed from the line segment [(3,3),(1,1)] and the X-axis beginning at (3,3).

ANGLE(3,3,1,1)