GM: degtorad

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is degtorad(). It appears incorrectly here because of technical restrictions.

degtorad
 

Type: function
Arguments: 1: angle (in degrees)
Limitations: none

The degtorad() function in Game Maker converts an angle in degrees to an angle in radians.


Note: radian to degree/degree to radian conversion

360° = 2Π rad
1 rad = 360/(2*Π)

[edit] See Also

Personal tools