NumCpp  2.11.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
AERtoNED.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include <cmath>
31 
34 
36 {
44  [[nodiscard]] inline reference_frames::NED AERtoNED(const reference_frames::AER aer) noexcept
45  {
46  const auto north = aer.range * std::cos(aer.el) * std::cos(aer.az);
47  const auto east = aer.range * std::cos(aer.el) * std::sin(aer.az);
48  const auto down = aer.range * std::sin(-aer.el);
49  return { north, east, down };
50  }
51 } // namespace nc::coordinates::transforms
Az, El, Range coordinates.
Definition: AER.hpp:42
North east down coordinates.
Definition: NED.hpp:40
Definition: AERtoECEF.hpp:38
reference_frames::NED AERtoNED(const reference_frames::AER aer) noexcept
Converts the spherical inertial coordinates (NED) to Cartesian XYZ (NED). NOTE: positive elevation is...
Definition: AERtoNED.hpp:44
auto sin(dtype inValue) noexcept
Definition: sin.hpp:49
auto cos(dtype inValue) noexcept
Definition: cos.hpp:49