acos(float)

From NWN Lexicon

Gets the arc cosine of a value.

float acos(
    float fValue
);

Contents

[edit] Parameters

fValue
Value to return the arc cosine of.

[edit] 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.

[edit] Version

1.31

[edit] See Also

functions:  tan


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

Personal tools
Categories