Atan - Math

From the CreationKit Wiki
Revision as of 13:15, 8 October 2012 by imported>JustinOther (→‎Examples: Floatified afValue)
Jump to navigation Jump to search

Member of: Math Script

Calculates the arctangent of the value it is given. The returned value is in degrees.

Syntax

float Function atan(float afValue) native global

Parameters

  • afValue: The value to get the arctangent of.

Return Value

The arctangent of the passed-in value, in degrees.

Examples

float x = math.atan(0.0) ; x == 180
float y = math.acos(1.0) ; y == 45

See Also