@emile/engine / math/angle / limitRadiansRange
Function: limitRadiansRange()
limitRadiansRange(
radians):number
Defined in: src/math/angle.ts:16
Limits the angle to the range [0, 2 * PI]. Will wrap around if the angle is outside this range, preserving the preceived rotation.
Parameters
radians
number
The radians to limit.
Returns
number
The limited radians.