Sin
From NWN Lexicon
Contents |
[edit] sin(float)
Returns the sine of fValue.
[edit] Parameters
fValue
Float value, in degrees not radians, to return the sine of.
[edit] Description
The sine is the ratio of the opposite side from the specified angle to the hypotenuse of a right triangle. The sin function takes an angle (in degrees) and returns the ratio of the side opposite of that angle divided by the hypotenuse. The return value (the range of sine) goes from -1.0 to 1.0.
This function, as well as the other math functions listed in the "See Also" below, can be used to calculate various angles and distances between objects.
[edit] Version
1.61
[edit] Example
[edit] See Also
functions: |
author: Charles Feduke, editor: Peter Busby, additional contributor(s): Paul Catalano