NumCpp  2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AERtoNED.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <cmath>
31
34
36{
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
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59