Struct for coordinates.
More...
#include <Coordinates.hpp>
◆ Coordinates()
| Coordinates::Coordinates |
( |
int |
x0 = 0, |
|
|
int |
y0 = 0 |
|
) |
| |
Construct a new Coordinates object. Z value is fetched based on the x and y values.
- Parameters
-
◆ distance()
| unsigned int Coordinates::distance |
( |
const Coordinates & |
other | ) |
const |
Calculate the euclidean distance between two Coordinates.
- Parameters
-
- Returns
- distance in integers
◆ operator==()
Check if coordinates match.
- Parameters
-
- Returns
- bool
◆ operator<
Compare coordinates.
- Parameters
-
- Returns
- true if l < r. false if l >= r.
The documentation for this struct was generated from the following files: