NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
NED.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <iostream>
31
33
35{
39 class NED final : public Cartesian
40 {
41 public:
43
48 constexpr NED(const Cartesian& cartesian) noexcept :
49 Cartesian(cartesian)
50 {
51 }
52
59 // NOTLINTNEXTLINE(bugprone-easily-swappable-parameters)
60 constexpr NED(double north, double east, double down) noexcept :
62 {
63 }
64
70 [[nodiscard]] double north() const noexcept
71 {
72 return x;
73 }
74
80 void setNorth(double north) noexcept
81 {
82 x = north;
83 }
84
90 [[nodiscard]] double east() const noexcept
91 {
92 return y;
93 }
94
100 void setEast(double east) noexcept
101 {
102 y = east;
103 }
104
110 [[nodiscard]] double down() const noexcept
111 {
112 return z;
113 }
114
120 void setDown(double down) noexcept
121 {
122 z = down;
123 }
124 };
125} // namespace nc::coordinates::reference_frames
Cartensian coordinates.
Definition: Cartesian.hpp:45
double z
Definition: Cartesian.hpp:49
double y
Definition: Cartesian.hpp:48
Cartesian() noexcept=default
Default Constructor.
double x
Definition: Cartesian.hpp:47
North east down coordinates.
Definition: NED.hpp:40
void setNorth(double north) noexcept
north setter
Definition: NED.hpp:80
double north() const noexcept
north getter
Definition: NED.hpp:70
void setDown(double down) noexcept
down setter
Definition: NED.hpp:120
void setEast(double east) noexcept
east setter
Definition: NED.hpp:100
double east() const noexcept
east getter
Definition: NED.hpp:90
Cartesian() noexcept=default
Default Constructor.
constexpr NED(const Cartesian &cartesian) noexcept
Constructor.
Definition: NED.hpp:48
constexpr NED(double north, double east, double down) noexcept
Constructor.
Definition: NED.hpp:60
double down() const noexcept
down getter
Definition: NED.hpp:110
Definition: AER.hpp:36