Garry's Mod Wiki

Garry's Mod Wiki

  number math.cos( number number )

Description

Returns the cosine of given angle.

Arguments

1 number number
Angle in radians

Returns

1 number
Cosine of given angle in the range (-1, 1)

Example

Prints the cosine of 3.14159265 (Pi)

print( math.cos( 3.14159265 ) )
Output: -1

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...