Skip to content

Function atan2

function atan2(const T1 &, const T2 &) math

template <numeric T1, numeric T2>
KFR_FUNCTION std::common_type_t<T1, T2> atan2(const T1& x, const T2& y)

Returns the arc tangent of y/x using the signs of both arguments to determine the correct quadrant. The result is in the range \([-\pi, \pi]\) .

Parameters
x Numerator of the ratio (y component).
y Denominator of the ratio (x component).
Returns
Arc tangent of y/x, in radians, in the range \([-\pi, \pi]\) .

Fully qualified name: kfr::atan2(const T1 &, const T2 &)

Declared at math/atan.hpp:68

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.