DegreesToRadians - Math

From the CreationKit Wiki
Revision as of 18:24, 4 March 2010 by imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Converts from degrees to radians. == Syntax == <source lang="papyrus"> float Function DegreesToRadians(float ...)
(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

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) ; x ~= 6.28318
float y = DegreesToRadians(90) ; y ~= 1.57080

See Also