Models for points.
More...
|
| template<typename T > |
| BOOST_FORCEINLINE bool | operator== (const point< T > &p1, const point< T > &p2) |
| |
| template<typename T > |
| BOOST_FORCEINLINE bool | operator!= (const point< T > &p1, const point< T > &p2) |
| |
| template<typename T > |
| BOOST_FORCEINLINE point< T > | operator+ (const point< T > &p1, const point< T > &p2) |
| |
| template<typename T > |
| BOOST_FORCEINLINE point< T > | operator- (const point< T > &p) |
| |
| template<typename T > |
| BOOST_FORCEINLINE point< T > | operator- (const point< T > &p1, const point< T > &p2) |
| |
| template<typename T , typename D > |
| BOOST_FORCEINLINE auto | operator/ (point< T > const &p, D d) -> typename std::enable_if< std::is_arithmetic< D >::value, point< typename detail::std_common_type< T, D >::type > >::type |
| |
| template<typename T , typename M > |
| BOOST_FORCEINLINE auto | operator* (point< T > const &p, M m) -> typename std::enable_if< std::is_arithmetic< M >::value, point< typename detail::std_common_type< T, M >::type > >::type |
| |
| template<typename T , typename M > |
| BOOST_FORCEINLINE auto | operator* (M m, point< T > const &p) -> typename std::enable_if< std::is_arithmetic< M >::value, point< typename detail::std_common_type< T, M >::type > >::type |
| |
| template<std::size_t K, typename T > |
| BOOST_FORCEINLINE T const & | axis_value (point< T > const &p) |
| |
| template<std::size_t K, typename T > |
| BOOST_FORCEINLINE T & | axis_value (point< T > &p) |
| |
Models for points.
Example:
point<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);
◆ axis_value() [1/2]
| BOOST_FORCEINLINE T& boost::gil::axis_value |
( |
point< T > & |
p | ) |
|
◆ axis_value() [2/2]
| BOOST_FORCEINLINE T const& boost::gil::axis_value |
( |
point< T > const & |
p | ) |
|
◆ operator!=()
| BOOST_FORCEINLINE bool boost::gil::operator!= |
( |
const point< T > & |
p1, |
|
|
const point< T > & |
p2 |
|
) |
| |
◆ operator*() [1/2]
| BOOST_FORCEINLINE auto boost::gil::operator* |
( |
M |
m, |
|
|
point< T > const & |
p |
|
) |
| -> typename std::enable_if
<
std::is_arithmetic<M>::value,
point<typename detail::std_common_type<T, M>::type>
>::type
|
◆ operator*() [2/2]
| BOOST_FORCEINLINE auto boost::gil::operator* |
( |
point< T > const & |
p, |
|
|
M |
m |
|
) |
| -> typename std::enable_if
<
std::is_arithmetic<M>::value,
point<typename detail::std_common_type<T, M>::type>
>::type
|
◆ operator+()
| BOOST_FORCEINLINE point<T> boost::gil::operator+ |
( |
const point< T > & |
p1, |
|
|
const point< T > & |
p2 |
|
) |
| |
◆ operator-() [1/2]
| BOOST_FORCEINLINE point<T> boost::gil::operator- |
( |
const point< T > & |
p | ) |
|
◆ operator-() [2/2]
| BOOST_FORCEINLINE point<T> boost::gil::operator- |
( |
const point< T > & |
p1, |
|
|
const point< T > & |
p2 |
|
) |
| |
◆ operator/()
| BOOST_FORCEINLINE auto boost::gil::operator/ |
( |
point< T > const & |
p, |
|
|
D |
d |
|
) |
| -> typename std::enable_if
<
std::is_arithmetic<D>::value,
point<typename detail::std_common_type<T, D>::type>
>::type
|
◆ operator==()
| BOOST_FORCEINLINE bool boost::gil::operator== |
( |
const point< T > & |
p1, |
|
|
const point< T > & |
p2 |
|
) |
| |