Jump to content

Atan()

From OpenBOR

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

float input = 1.0;

float result = atan(input);

// result = 45.0

Unlike asin() and acos(), atan() accepts values across the full numeric range and requires no domain clamping. Its result falls between -90 and 90 degrees.