2.5.4.82 Rad

The Rad function converts a value to an angle in radians.

ABNF:

 Rad = val " RAD():128"

Required Arguments:

Name: Angle

Type: vDouble

An argument that specifies an angle.

Return Value:

Type: PtgAngRad

This function returns a PtgAngRad. If Angle is a vAngle, the value is equal to the value of Angle. Otherwise, Angle is interpreted as an angle in degrees and the return value is equal to:

pi / 180.0 * value of Angle