Concept

SRTraits_2::IntegerGridPoint_2

Refines

AdaptableBinaryFunction

Has Models

SRTraits_2::Integer_grid_point_2

Point_2 fo ( Point_2 p , NT pixel_size ) converts coordinates into an integer representation where one unit is equal to pixel size. For instance, if a point has the coordinates (3.7,5.3) and the pixel size is 0.5, then the new point will have the coordinates of (7,10). Note, however, that the number type remains the same here, although integers are represented. p is the converted point and pixel_size is the size of the pixel of the grid.