Acos

From GameStudio Wiki

Jump to: navigation, search

Arc cosine function - the opposite of the cos function, returns an angle for a given cosine value.

Contents

Parameters

x - cosine value (-1 ... 1 ).

Returns

Angle (0 ... 360).

Speed

fast

Example

x = acos(0);     // x is 90
x = acos(0.707); // x is 45
x = cos(45);     // x is 0.707

See also

cos, fcos, facos

Personal tools