degtorad
Last updated
Converts an angle from degrees to radians.
degrees: The angle in degrees to convert
Returns the angle converted to radians.
// Convert 180 degrees to radians
angle = degtorad(180)
// returns approximately 3.14159 (π)
// Convert 90 degrees to radians
angle = degtorad(90)
// returns approximately 1.5708 (π/2)
// Use with trigonometric functions
x = degtorad(45).sin * distanceLast updated