acos(float)

From NWN Lexicon
Jump to navigationJump to search

Gets the arc cosine of a value.

float acos(
    float fValue
);

Parameters

fValue
Value to return the arc cosine of.

Description

Arc cosine is the inverse of the sin() function. Thus, given an fValue that is some ratio of the adjacent side to the hypotenuse of a right triangle, the acos function returns the appropriate angle (in degrees) of that triangle. The acos function returns a value from 0.0 to 180.0.

Version

1.31

See Also

functions:  tan



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