Garry's Mod Wiki

math.cos

number math.cos( number number )

Description

Returns the of given angle.

Arguments

1 number number
Angle in radians

Returns

1 number
Cosine of given angle

Example

Prints the cosine of 3.14159265 (Pi)

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

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 12