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 |
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.
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.
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) atan2 functions.