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));

Function Documentation

◆ iceil() [1/2]

point<std::ptrdiff_t> boost::gil::iceil ( point< double > const &  p)
inline

◆ iceil() [2/2]

point<std::ptrdiff_t> boost::gil::iceil ( point< float > const &  p)
inline

◆ ifloor() [1/2]

point<std::ptrdiff_t> boost::gil::ifloor ( point< double > const &  p)
inline

◆ ifloor() [2/2]

point<std::ptrdiff_t> boost::gil::ifloor ( point< float > const &  p)
inline

◆ iround() [1/3]

point<std::ptrdiff_t> boost::gil::iround ( point< double > const &  p)
inline

◆ iround() [2/3]

point<std::ptrdiff_t> boost::gil::iround ( point< float > const &  p)
inline

◆ iround() [3/3]

point<std::ptrdiff_t> boost::gil::iround ( point< T > const &  p)
inline
boost::gil::iround
point< std::ptrdiff_t > iround(point< T > const &p)
Definition: point.hpp:249