Usage

Syntax: cos(float r);
Returns the cosine of an angle.

Explanation

In a right triangle, the cosine of an angle is the length of the adjacent side divided by the length of the hypotenuse.
Note that the angle is in radians, not degrees.

Example

function onCreated()
{
  temp.foo = cos(pi / 2);
}

... sets temp.foo to 0.0.

Categories

CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki