48 const auto hypotXy =
std::hypot(target.x, target.y);
49 const auto el = -std::atan2(target.z, hypotXy);
50 const auto az =
wrap2Pi(std::atan2(target.y, target.x));
53 return { az, el, range };
Az, El, Range coordinates.
Definition: AER.hpp:42
North east down coordinates.
Definition: NED.hpp:40
double wrap2Pi(dtype inAngle) noexcept
Wrap the input angle to [0, 2*pi].
Definition: wrap2Pi.hpp:43
double hypot(dtype inValue1, dtype inValue2) noexcept
Definition: hypot.hpp:56