Boost GIL


Functions
Algorithms and Utility Functions

Algorithms and Utility Functions for points. More...

Functions

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)
 

Detailed Description

Algorithms and Utility Functions for points.

Example:

assert(iround(point2<double>(3.1, 3.9)) == point2<std::ptrdiff_t>(3,4));