Loading...
Searching...
No Matches
Three-dimensional value type for route arithmetic.
More...
#include <aigenlib.hpp>
|
| | Point (double east=0.0, double north=0.0, double altitude=0.0) |
| | Construct a point.
|
| double & | x () noexcept |
| | Access east.
|
| double | x () const noexcept |
| | Access east.
|
| double & | y () noexcept |
| | Access north.
|
| double | y () const noexcept |
| | Access north.
|
| double & | z () noexcept |
| | Access altitude.
|
| double | z () const noexcept |
| | Access altitude.
|
| double & | operator[] (std::size_t index) |
| | Checked coordinate access.
|
| double | operator[] (std::size_t index) const |
| | Checked coordinate access.
|
| double | norm () const noexcept |
| | Euclidean length.
|
| bool | finite () const noexcept |
| | Check every coordinate.
|
| Point & | operator+= (const Point &other) noexcept |
| | Add coordinates.
|
| Point & | operator-= (const Point &other) noexcept |
| | Subtract coordinates.
|
Three-dimensional value type for route arithmetic.
Coordinates use metres; norm uses overflow-resistant hypot.
Definition at line 43 of file aigenlib.hpp.
◆ Point()
| dipla::aigenlib::Point::Point |
( |
double | east = 0.0, |
|
|
double | north = 0.0, |
|
|
double | altitude = 0.0 ) |
Construct a point.
- Parameters
-
| east | East. |
| north | North. |
| altitude | Height. |
Definition at line 187 of file aigenlib.cpp.
◆ finite()
| bool dipla::aigenlib::Point::finite |
( |
| ) |
const |
|
noexcept |
Check every coordinate.
- Returns
- True if finite.
Definition at line 197 of file aigenlib.cpp.
◆ norm()
| double dipla::aigenlib::Point::norm |
( |
| ) |
const |
|
noexcept |
Euclidean length.
- Returns
- Nonnegative length.
Definition at line 196 of file aigenlib.cpp.
◆ operator+=()
| Point & dipla::aigenlib::Point::operator+= |
( |
const Point & | other | ) |
|
|
noexcept |
Add coordinates.
- Parameters
-
- Returns
- This point.
Definition at line 198 of file aigenlib.cpp.
◆ operator-=()
| Point & dipla::aigenlib::Point::operator-= |
( |
const Point & | other | ) |
|
|
noexcept |
Subtract coordinates.
- Parameters
-
- Returns
- This point.
Definition at line 202 of file aigenlib.cpp.
◆ operator[]() [1/2]
| double & dipla::aigenlib::Point::operator[] |
( |
std::size_t | index | ) |
|
Checked coordinate access.
- Parameters
-
- Returns
- Mutable value.
Definition at line 194 of file aigenlib.cpp.
◆ operator[]() [2/2]
| double dipla::aigenlib::Point::operator[] |
( |
std::size_t | index | ) |
const |
Checked coordinate access.
- Parameters
-
- Returns
- Value.
Definition at line 195 of file aigenlib.cpp.
◆ x() [1/2]
| double dipla::aigenlib::Point::x |
( |
| ) |
const |
|
noexcept |
Access east.
- Returns
- Coordinate.
Definition at line 189 of file aigenlib.cpp.
◆ x() [2/2]
| double & dipla::aigenlib::Point::x |
( |
| ) |
|
|
noexcept |
Access east.
- Returns
- Mutable coordinate.
Definition at line 188 of file aigenlib.cpp.
◆ y() [1/2]
| double dipla::aigenlib::Point::y |
( |
| ) |
const |
|
noexcept |
Access north.
- Returns
- Coordinate.
Definition at line 191 of file aigenlib.cpp.
◆ y() [2/2]
| double & dipla::aigenlib::Point::y |
( |
| ) |
|
|
noexcept |
Access north.
- Returns
- Mutable coordinate.
Definition at line 190 of file aigenlib.cpp.
◆ z() [1/2]
| double dipla::aigenlib::Point::z |
( |
| ) |
const |
|
noexcept |
Access altitude.
- Returns
- Coordinate.
Definition at line 193 of file aigenlib.cpp.
◆ z() [2/2]
| double & dipla::aigenlib::Point::z |
( |
| ) |
|
|
noexcept |
Access altitude.
- Returns
- Mutable coordinate.
Definition at line 192 of file aigenlib.cpp.
◆ coordinates
| std::array<double, 3> dipla::aigenlib::Point::coordinates {} |
The documentation for this struct was generated from the following files: