DegreesToRadians - Math

From the CreationKit Wiki
Revision as of 14:09, 8 October 2012 by imported>JustinOther (→‎Examples: Floatified float params)
Jump to navigation Jump to search

Member of: Math Script

Converts from degrees to radians.

Syntax

float Function DegreesToRadians(float afDegrees) native global

Parameters

  • afDegrees: The value in degrees to convert.

Return Value

The passed-in value converted to radians.

Examples

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

See Also