MicrOS
atan2f.c File Reference
#include "../math.h"

Functions

float atan2f (float x, float y)
 Compute arc tangent with two parameters. More...
 

Function Documentation

◆ atan2f()

float atan2f ( float  x,
float  y 
)

Compute arc tangent with two parameters.

The atan2f functions compute the value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value. A domain error may occur if both arguments are zero.

Parameters
xValue representing the proportion of the y-coordinate.
yValue representing the proportion of the x-coordinate.
Returns
The atan2f functions return arctan y/x in the interval [−π , +π ] radians.