NumCpp
2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
AERtoNED.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include <cmath>
31
32
#include "
NumCpp/Coordinates/ReferenceFrames/AER.hpp
"
33
#include "
NumCpp/Coordinates/ReferenceFrames/NED.hpp
"
34
35
namespace
nc::coordinates::transforms
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
AER.hpp
NED.hpp
nc::coordinates::reference_frames::AER
Az, El, Range coordinates.
Definition:
AER.hpp:42
nc::coordinates::reference_frames::NED
North east down coordinates.
Definition:
NED.hpp:40
nc::coordinates::transforms
Definition:
AERtoECEF.hpp:38
nc::coordinates::transforms::AERtoNED
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
nc::sin
auto sin(dtype inValue) noexcept
Definition:
sin.hpp:49
nc::cos
auto cos(dtype inValue) noexcept
Definition:
cos.hpp:49
include
NumCpp
Coordinates
Transforms
AERtoNED.hpp
Generated by
1.9.4