Concept

SRTraits_2::Snap_2

Refines

AdaptableQuaternaryFunction

Has Models

SRTraits_2::Snap_2

void fo ( Point_2 p , FT pixel_size , FT &x , FT &y )
rounds a point to a center of a pixel (unit square) in the grid used by the Snap Rounding algorithm. Note that no conversion to an integer grid is done yet. p is the input point, pixel_size is the size of the pixel of the grid, and x and y are the x and y-coordinates of the rounded point respectively.