1,482
edits
imported>Haravikk No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
float Function DegreesToRadians(float afDegrees) native global | float Function DegreesToRadians(float afDegrees) native global | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
float x = DegreesToRadians(360.0) ; x ~= 6.28318 | float x = DegreesToRadians(360.0) ; x ~= 6.28318 | ||
float y = DegreesToRadians(90.0) ; y ~= 1.57080 | float y = DegreesToRadians(90.0) ; y ~= 1.57080 | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||
The same result can be achieved without a function call by simply multiplying by 0.01745329252: | The same result can be achieved without a function call by simply multiplying by 0.01745329252: | ||
< | <syntaxhighlight lang="papyrus"> | ||
float x = 360.0 * 0.01745329252 ; x ~= 6.28318 | float x = 360.0 * 0.01745329252 ; x ~= 6.28318 | ||
float y = 90.0 * 0.01745329252 ; y ~= 1.57080 | float y = 90.0 * 0.01745329252 ; y ~= 1.57080 | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[Math Script]] | *[[Math Script]] | ||
*[[RadiansToDegrees - Math]] | *[[RadiansToDegrees - Math]] | ||