deg_to_rad

 
 
 

Returns the radian equivalent of a degree value. One radian equals roughly 57.29578 degrees.

float deg_to_rad( float degrees )

degrees is the degree angle you want to convert to radians.

Example

deg_to_rad(90)

Returns 1.571, which is the same as pi/2.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License