Math.toDegrees()

Signature

double toDegrees (double angrad)

Domain

ACTION, CONDITION, QUERY, BUI

Description

Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect cos(toRadians(90.0)) to exactly equal 0.0.

Parameters

NameTypeDescription
angraddoubleAn angle, in radians.

Returns

TypeDescription
doubleThe measurement of the angle angrad in degrees.

Cautions

none