a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / toRadians
toRadians(
degrees
):number
Converts an angle from degrees to radians.
• degrees: number
The angle in degrees.
number
The angle in radians.
toRadians(180); // Math.PI
toRadians(90); // Math.PI / 2