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
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 :
50 {
51 }
52
59 // NOTLINTNEXTLINE(bugprone-easily-swappable-parameters)
60 constexpr NED(double north, double east, double down) noexcept :
62 {
63 }
64
71 {
72 return x;
73 }
74
80 void setNorth(double north) noexcept
81 {
82 x = north;
83 }
84
91 {
92 return y;
93 }
94
100 void setEast(double east) noexcept
101 {
102 y = east;
103 }
104
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
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59