cos()

The mathLib.cos() system function returns the cosine of a number as an angle expressed in radians.

Syntax

  mathLib.cos(numericVariable FLOAT in)
  returns (result FLOAT)
numericVariable
Input can be any variable or expression that is assignment compatible with the FLOAT type (see "Assignment compatibility in EGL").
result
The cosine of numericVariable is returned as a FLOAT value, in radians, in the range -1 to 1.

Example

  result = mathLib.cos(myVar);

Feedback