Template Function TRAP::Math::ATan(Vec<L, T>, const Vec<L, T>&)#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::ATan(Vec<L, T> y, const Vec<L, T> &x)# Arc tangent. The range of values returned by this function is [-PI, PI].
Note
Results are undefined if x and y are both 0!
- Parameters:
y – Specify the numerator of the fraction whose arctangent to return.
x – Specify the denominator of the fraction whose arctangent to return.
- Returns:
Angle whose tangent is y / x. The signs of x and y are used to determine what quadrant the angle is in.