Module gamejs/math/angles

Degrees and radians.

Functions


degrees (radians)

convert radians to degrees

Parameters

Number radians

Returns

Number degrees

normaliseDegrees (absolute)

absolute angle to relative angle, in degrees

Parameters

Number absolute angle in degrees

Returns

Number relative angle in degrees

normaliseRadians (absolute)

absolute angle to relative angle, in radians

Parameters

Number absolute angle in radians

Returns

Number relative angle in radians

radians (degrees)

convert degrees to radians

Parameters

Number degrees

Returns

Number radians