Skip to content

Function atan2deg

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

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

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

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

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

Declared at math/atan.hpp:86

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