Algorithms and Utility Functions for points.
More...
|
point2< std::ptrdiff_t > | iround (const point2< float > &p) |
|
point2< std::ptrdiff_t > | iround (const point2< double > &p) |
|
point2< std::ptrdiff_t > | ifloor (const point2< float > &p) |
|
point2< std::ptrdiff_t > | ifloor (const point2< double > &p) |
|
point2< std::ptrdiff_t > | iceil (const point2< float > &p) |
|
point2< std::ptrdiff_t > | iceil (const point2< double > &p) |
|
Algorithms and Utility Functions for points.
Example:
assert(iround(point2<double>(3.1, 3.9)) == point2<std::ptrdiff_t>(3,4));