![]() |
MineLink
|
An utility class to abstract coordinates so they can be used as map and set keys by means of string conversion. More...
#include <coords.h>

Public Member Functions | |
| Coordinates (const float &x, const float &y, const float &z) | |
| Creates the coordinates with given location. | |
| Coordinates (const delphos::Coordinates &other) | |
| Copy constructor. | |
| Coordinates () | |
| Creates coordinates with location \((0,0,0)\). | |
| string | ToString () const |
| Converts the coordinates to its representation as a string. More... | |
| const float | X () const |
| Retrieves the \(x\) component of the coordinates. More... | |
| const float | Y () const |
| Retrieves the \(y\) component of the coordinates. More... | |
| const float | Z () const |
| Retrieves the \(z\) component of the coordinates. More... | |
| bool | InSlopeAngle (const double &vertical_angle_degrees, const double &max_z_diff, const delphos::Coordinates &other, const double tolerance=0.001) const |
| Checks whether the coordinates are within the precedence cone of another coordinates. More... | |
An utility class to abstract coordinates so they can be used as map and set keys by means of string conversion.
In practice, a Coordinates instance is just a container for \((x,y,z)\) spatial coordinates.
| bool delphos::Coordinates::InSlopeAngle | ( | const double & | vertical_angle_degrees, |
| const double & | max_z_diff, | ||
| const delphos::Coordinates & | other, | ||
| const double | tolerance = 0.001 |
||
| ) | const |
Checks whether the coordinates are within the precedence cone of another coordinates.
| vertical_angle_degrees | The precedence angle, in degrees, measured from vertical axis downwards. |
| max_z_diff | Maximum vertical distance to consider for cone construction. |
| other | The other coordinates (candidate to be succesor). |
| tolerance | Numerical tolerance in the computation. |
The current coordinates are checked whether it correpond to a point inside (or not) of the precedence cone constructed with vertex on the coordinates of the "other" coordinates and height equal to max_z_diff.
| string delphos::Coordinates::ToString | ( | ) | const |
Converts the coordinates to its representation as a string.
The string format is as follows, if \((x_0,y_0,z_0)\) are the spatial coordinates, then the representation will be \(x_0\#y_0\#z_0\).
| const float delphos::Coordinates::X | ( | ) | const |
Retrieves the \(x\) component of the coordinates.
| const float delphos::Coordinates::Y | ( | ) | const |
Retrieves the \(y\) component of the coordinates.
| const float delphos::Coordinates::Z | ( | ) | const |
Retrieves the \(z\) component of the coordinates.