Garry's Mod Wiki

math.acos

  number math.acos( number cos )

Description

Returns the arccosine of the given number.

Arguments

1 number cos
Cosine value in range of -1 to 1.

Returns

1 number
An angle in radians, between 0 and pi, which has the given cos value.

nan if the argument is out of range.