asin(float)

From NWN Lexicon
Jump to navigationJump to search

Gets the arc sine of a value.

float asin(
    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 get the arc sine of.

Description

Arc sine is the inverse of the sin() function. Thus, given an fValue that is some ratio of the opposite side to the hypotenuse of a right triangle, asin() returns the appropriate angle (in degrees) of that triangle. asin() returns a value from -90 to 90 or returns zero if fValue is greater than 1 or fValue less than -1.

Version

1.31

See Also

functions:  tan



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