atan2f4

NAME

atan2f4 - return arc tangents of division of float elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector float atan2f4(vector float y, vector float x);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <atan2f4.h>
vector float _atan2f4(vector float y, vector float x);
Parameters  
y,x input vectors

DESCRIPTION

The atan2f4 function calculates the arc tangents of each of the elements in y and x. This function is similar to computing atan(y/x); however the sign of each of the elements is used to determine the quadrant of the result.

RETURN VALUE

The function atan2f4 returns a float vector in which each element is defined as the arc tangent of y/x using the signs of y and x to determine the quadrant of the result.

ENVIRONMENT

SPU and PPU

CONFORMING TO

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis

ISO9899 (C99) atan2 functions.

SEE ALSO

atan2(3), atan2d2(3), sin(3), sinf4(3), sind2(3), cos(3), cosf4(3), cosd2(3), sincos(3), sincosf4(3), sincosd2(3), tan(3), tanf4(3), tand2(3), asin(3), asinf4(3), asind2(3), acos(3), acosf4(3), acosd2(3), atan(3), atanf4(3), atand2(3)