Cos (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Returns the cosine of the given angle in degrees.

Usage

float cos( float degrees )

Parameters

  • [degrees] - The angle to calculate the cosine of.

Examples

 
cosAng = sys.cos(90);

Notes

This script event returns the cosine of the given angle.