Cos

From M.U.G.E.N Wiki

Jump to: navigation, search



Trigger: Cos (math)

Computes the cosine of the specified argument (in radians.)

Format:
cos(exprn)
Arguments:
exprn
Expression to compute the cosine of. (float)
Return type:
float
Error conditions:
Returns SFalse if exprn evaluates to SFalse.

Example:

value = cos(0)
  Sets value to the cosine of 0, which is approximately 1.0
  (possibly with some rounding error.)


Personal tools