DegreesToRadians - Math

From the Fallout4 CreationKit Wiki
Revision as of 14:11, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Math Script

Converts from degrees to radians.

Syntax[edit | edit source]

float Function DegreesToRadians(float afDegrees) native global

Parameters[edit | edit source]

  • afDegrees: The value in degrees to convert.

Return Value[edit | edit source]

The passed-in value converted to radians.

Examples[edit | edit source]

float x = DegreesToRadians(360) ; x ~= 6.28318
float y = DegreesToRadians(90) ; y ~= 1.57080

See Also[edit | edit source]