Loading...
Searching...
No Matches
Aigen::Point Class Reference
aigenlib point with familiar initialization and finite-check spelling. More...
#include <compat.hpp>
Inheritance diagram for Aigen::Point:

Collaboration diagram for Aigen::Point:

Public Member Functions | |
| Point (const dipla::aigenlib::Point &point) | |
| Accept the result of value arithmetic. | |
| void | setZero () noexcept |
| Reset every coordinate to zero. | |
| bool | allFinite () const noexcept |
| Validate coordinates. | |
| Point | eval () const |
| Return a value, never an expression. | |
| Point (double east=0.0, double north=0.0, double altitude=0.0) | |
| Construct a point. | |
| Public Member Functions inherited from dipla::aigenlib::Point | |
| 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. | |
Static Public Member Functions | |
| static Point | Zero () |
| Construct the origin. | |
Additional Inherited Members | |
| Data Fields inherited from dipla::aigenlib::Point | |
| std::array< double, 3 > | coordinates {} |
Detailed Description
aigenlib point with familiar initialization and finite-check spelling.
Arithmetic uses the underlying value operations without heap storage.
Definition at line 136 of file compat.hpp.
Constructor & Destructor Documentation
◆ Point() [1/2]
|
inline |
Accept the result of value arithmetic.
- Parameters
-
point Coordinates.
Definition at line 140 of file compat.hpp.
◆ Point() [2/2]
| 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 46 of file aigenlib.cpp.
Member Function Documentation
◆ allFinite()
|
inlinenoexcept |
◆ eval()
|
inline |
◆ setZero()
|
inlinenoexcept |
Reset every coordinate to zero.
Definition at line 144 of file compat.hpp.
◆ Zero()
|
inlinestatic |
The documentation for this class was generated from the following file:
- modules/dipla_cam/aigenlib/compat.hpp