====== cos ======
===== Description =====
Calculate the [[wp>cosine]] of an angle.
===== Function prototype =====
double cos
===== Arguments =====
^ Name ^ Type ^ Comment ^
| Angle | double | An angle, in radians, the cosine of which is to be calculated. |
===== Return value =====
The cosine of the angle, as a double.
===== Example =====
double angle
set angle // convert 60 degrees to radians
echo // cos of 60 degrees should be 0.5
... the output of which is written to the event log by [[plugins:general:zeoscript:reference:functions:echo]] as:
0.5
===== Comments =====
None.
===== See also =====
* [[plugins:general:zeoscript:reference:functions:sin]]
* [[plugins:general:zeoscript:reference:functions:tan]]
* [[plugins:general:zeoscript:reference:functions:asin]]
* [[plugins:general:zeoscript:reference:functions:acos]]
* [[plugins:general:zeoscript:reference:functions:atan]]
* [[plugins:general:zeoscript:reference:functions:DegToRad]]
* [[plugins:general:zeoscript:reference:functions:RadToDeg]]