CGAL 6.2 - 2D Snap Rounding
Loading...
Searching...
No Matches
FSRTraits_2::ConstructRoundedPoint_2 Concept Reference

Definition

Public Member Functions

Point_2 operator() (Point_2 p)
 Given a point, constructs a point whose coordinates are rounded.
 

Member Function Documentation

◆ operator()()

Point_2 FSRTraits_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()) <= 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.