Boost GIL


Functions
Algorithms and Utility Functions

Algorithms and Utility Functions for points. More...

Functions

template<typename T >
point< std::ptrdiff_t > iround (point< T > const &p)
 
point< std::ptrdiff_t > iround (point< float > const &p)
 
point< std::ptrdiff_t > iround (point< double > const &p)
 
point< std::ptrdiff_t > ifloor (point< float > const &p)
 
point< std::ptrdiff_t > ifloor (point< double > const &p)
 
point< std::ptrdiff_t > iceil (point< float > const &p)
 
point< std::ptrdiff_t > iceil (point< double > const &p)
 

Detailed Description

Algorithms and Utility Functions for points.

Example:

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