Background for Skyrim SE
Member of the Math script
floatfunctionDegreesToRadians(floatafDegrees)NativeGlobal

Description

Wiki Description

Converts from degrees to radians.

Documentation Comment

Converts degrees to radians


Caveats

CK Wiki - Notes

The same result can be achieved without a function call by simply multiplying by 0.01745329252:

float x = 360.0 * 0.01745329252 ; x ~= 6.28318
float y = 90.0 * 0.01745329252 ; y ~= 1.57080

Parameters

floatafDegrees

CK Wiki Description

The value in degrees to convert.


Examples

float x = DegreesToRadians(360.0) ; x ~= 6.28318
float y = DegreesToRadians(90.0) ; y ~= 1.57080

Auto-Generated Example

float myFloat__afDegrees

float returnedValue = Math.DegreesToRadians(myFloat__afDegrees)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.