#include <Concepts/VerticalSlabSnapRoundingTraits_2.h>
|
| Point_2 | operator() (Point_2 p) |
| | Given a point, constructs a point whose coordinates are rounded.
|
| |
◆ operator()()
| Point_2 VSSRTraits_2::ConstructRoundedPoint_2::operator() |
( |
Point_2 |
p | ) |
|
Given a point, constructs a point whose coordinates are rounded.
- Warning
- To guarantee a valid result, the order of the coordinates of two points
p and q must be preserved: \(p.x() < q.x()\) implies \(rounded(p.x()) \leq rounded(q.x()) \) (and similarly for the y coordinate).
- Note
- If
Evaluation_tag is true, the algorithms sort the vertices and call Evaluate when two vertices are likely to not respect this condition.