|
YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
|
Polyline / polygon described in percentage coordinates. More...
#include <backend/include/geometry.hpp>
Public Member Functions | |
| void | dump (std::ostream &out) const |
| Print a human-readable representation of the line. | |
| void | normalize () |
| Canonicalize point order. | |
| bool | operator== (const line &other) const |
| Equality check using canonical point comparison. | |
Public Attributes | |
| std::string | name |
| Logical name of the line (e.g., "entrance_tripwire"). | |
| std::vector< point > | points |
| Vertex list in percentage coordinates. | |
| bool | closed { false } |
| Whether the chain is closed. | |
| tripwire_dir | dir { tripwire_dir::any } |
| Optional tripwire direction constraint. | |
Polyline / polygon described in percentage coordinates.
A line can represent:
The points may be reordered by normalize() to provide a canonical representation for equality checks and stable processing.
Definition at line 81 of file geometry.hpp.
| void yodau::backend::line::dump | ( | std::ostream & | out | ) | const |
Print a human-readable representation of the line.
| out | Output stream to write to. |
Definition at line 17 of file geometry.cpp.
| void yodau::backend::line::normalize | ( | ) |
Canonicalize point order.
Behavior (as per implementation):
Definition at line 29 of file geometry.cpp.
References closed.
| bool yodau::backend::line::operator== | ( | const line & | other | ) | const |
Equality check using canonical point comparison.
Two lines are equal if:
| other | Line to compare with. |
Definition at line 70 of file geometry.cpp.
| bool yodau::backend::line::closed { false } |
Whether the chain is closed.
If true, the first point is considered connected to the last point.
Definition at line 97 of file geometry.hpp.
Referenced by normalize().
| tripwire_dir yodau::backend::line::dir { tripwire_dir::any } |
Optional tripwire direction constraint.
Used by line-crossing logic. Defaults to tripwire_dir::any.
Definition at line 104 of file geometry.hpp.
| std::string yodau::backend::line::name |
Logical name of the line (e.g., "entrance_tripwire").
Definition at line 85 of file geometry.hpp.
| std::vector<point> yodau::backend::line::points |
Vertex list in percentage coordinates.
Definition at line 90 of file geometry.hpp.