Template Function TRAP::Math::ATan(genType, genType)#

Function Documentation#

template<typename genType>
constexpr genType TRAP::Math::ATan(genType y, genType 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.