Jump to content

Acos()

From OpenBOR

Accepts a decimal value and returns its arc cosine in degrees using the C acos() function: acos(input) * 180 / π.

Valid arc-cosine inputs range from -1 to 1. Values outside this range are clamped to the nearest limit.

float input = 0.5;

float result = acos(input);

// result = 60.0