cos(float)

Gets the cosine of a value.

float cos(
    float fValue
);

Parameters

fValue

Float value, in degrees not radians, to return the cosine of.


Description

The cosine of an angle is defined as the ratio of the adjacent side to the hyptenuse of a right triangle. The cos function takes an angle (in degrees) as an argument and returns the ratio of the adjacent side to the hypotenuse. The return value (the range of cosine) goes from -1.0 to 1.0.



Remarks

A cosine is the sine of the complement of an arc or angle.


Version

1.31

See Also

functions: acos | asin | atan | GetChangeInX | sin | tan
categories: Math Functions


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