math.cos

From Garry's Mod
Jump to: navigation, search
 math.cos( )

Contents

Description

Returns the cosine of given angle.

Arguments

number number

Angle in radians

Returns

number

Cosine of given angle

Examples

Example

Prints the cosine of 3.14159265 (Pi)

print( math.cos( 3.14159265 ) )

Output:

-1
Personal tools
Navigation