Generic Image Library: Models

###  | #  |

- Main Page
- Modules
- Namespaces
- Classes
- Files

Classes | Functions
Models
Point

Models for points. More...

## Classes
class | point2< T >
| 2D point both axes of which have the same dimension typeModels: Point2DConcept More...

## Functions
template<typename T >
BOOST_FORCEINLINE bool | operator== (const point2< T > &p1, const point2< T > &p2)
template<typename T >
BOOST_FORCEINLINE bool | operator!= (const point2< T > &p1, const point2< T > &p2)
template<typename T >
BOOST_FORCEINLINE point2< T > | operator+ (const point2< T > &p1, const point2< T > &p2)
template<typename T >
BOOST_FORCEINLINE point2< T > | operator- (const point2< T > &p)
template<typename T >
BOOST_FORCEINLINE point2< T > | operator- (const point2< T > &p1, const point2< T > &p2)
template<typename T >
BOOST_FORCEINLINE point2< double > | operator/ (const point2< T > &p, double t)
template<typename T >
BOOST_FORCEINLINE point2< T > | operator* (const point2< T > &p, std::ptrdiff_t t)
template<typename T >
BOOST_FORCEINLINE point2< T > | operator* (std::ptrdiff_t t, const point2< T > &p)
template<std::size_t K, typename T >
BOOST_FORCEINLINE const T & | axis_value (const point2< T > &p)
template<std::size_t K, typename T >
BOOST_FORCEINLINE T & | axis_value (point2< T > &p)

## Detailed Description

Models for points.

Example:

point2<std::ptrdiff_t> p(3,2);
assert((p[0] == p.x) && (p[1] == p.y));
assert(axis_value<0>(p) == 3);
assert(axis_value<1>(p) == 2);