|
YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
|
Point in percentage-based image coordinates. More...
#include <backend/include/geometry.hpp>
Public Member Functions | |
| float | distance_to (const point &other) const |
| Compute Euclidean distance to another point. | |
| bool | compare (const point &other) const |
| Compare two points with tolerance epsilon. | |
Public Attributes | |
| float | x {} |
| Horizontal coordinate (percentage of width). | |
| float | y {} |
| Vertical coordinate (percentage of height). | |
Static Public Attributes | |
| static constexpr float | epsilon { 0.001f } |
| Tolerance used for fuzzy point comparisons. | |
Point in percentage-based image coordinates.
Coordinates are expressed in the range [0.0; 100.0], where:
Definition at line 19 of file geometry.hpp.
| bool yodau::backend::point::compare | ( | const point & | other | ) | const |
Compare two points with tolerance epsilon.
The comparison is component-wise:
| other | Point to compare to. |
Definition at line 13 of file geometry.cpp.
| float yodau::backend::point::distance_to | ( | const point & | other | ) | const |
Compute Euclidean distance to another point.
Distance is computed in percentage units.
| other | Target point. |
other. Definition at line 7 of file geometry.cpp.
|
staticconstexpr |
Tolerance used for fuzzy point comparisons.
Definition at line 33 of file geometry.hpp.
Referenced by compare().
| float yodau::backend::point::x {} |
Horizontal coordinate (percentage of width).
Definition at line 23 of file geometry.hpp.
Referenced by compare(), and distance_to().
| float yodau::backend::point::y {} |
Vertical coordinate (percentage of height).
Definition at line 28 of file geometry.hpp.
Referenced by compare(), and distance_to().