atan(float)

From NWN Lexicon
Jump to navigationJump to search

Gets the arc tangent of a value.

float atan(
    float fValue
);
Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

Parameters

fValue
Value to return the arc tangent of.

Description

Arc tangent is the inverse of the tan() function. Thus, given an fValue that is some ratio of the opposite side to the adjacent side of a right triangle, the atan function returns the appropriate angle (in degrees) of that triangle. The atan function returns a value from -90.0 to 90.0.

Version

1.31

See Also

functions:  tan



author: Charles Feduke, additional contributor(s): Paul Catalano