wrapAngle(angle, radians) → {number}
Keeps an angle value between -180 and +180; or -PI and PI if radians.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
angle | number | The angle value to wrap | ||
radians | boolean | <optional> | false | Set to |
Returns
number -
The new angle value; will be the same as the input angle if it was within bounds.
- Source code: math/Math.js (Line 727)
Please login to continue.