fixAngle.php
Table of Contents
Functions
- fixAngle() : float
- Normalize an angle in degrees to the range [0, 360).
Functions
fixAngle()
Normalize an angle in degrees to the range [0, 360).
fixAngle(float|int $angle) : float
If the input is not numeric (NaN, null, etc.), the function will return 0.
Parameters
- $angle : float|int
-
The angle in degrees.
Tags
Return values
float —The normalized angle between 0 (inclusive) and 360 (exclusive).