RadiansToDegrees - Math

From the Fallout4 CreationKit Wiki
Revision as of 14:12, 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 radians to degrees.

Syntax[edit | edit source]

float Function RadiansToDegrees(float afRadians) native global

Parameters[edit | edit source]

  • afRadians: The value in radians to convert.

Return Value[edit | edit source]

The passed-in value converted to degrees.

Examples[edit | edit source]

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

See Also[edit | edit source]