Cos

Top  Previous  Next

Function

Parameters

Return value

Cos

double d

double

 

Returns the cosine of the specified angle (d). The angle must be in radians.

 

Multiply by Math.PI / 180 to convert degrees to radians.

 

Example:

 

Cos(90 * Math.PI / 180) = 0