$extrastylesheet
#include <mln/core/concept/gpoint.hh>
Protected Member Functions | |
Gpoint () |
Public Types | |
typedef Gpoint< void > | category |
typedef E | exact_t |
Related Functions | |
(Note that these are not member functions.) | |
template<typename P , typename D > | |
P | operator+ (const Gpoint< P > &p, const Gdpoint< D > &dp) |
template<typename P , typename D > | |
P & | operator+= (Gpoint< P > &p, const Gdpoint< D > &dp) |
template<typename L , typename R > | |
L::delta | operator- (const Gpoint< L > &lhs, const Gpoint< R > &rhs) |
template<typename P , typename D > | |
P & | operator-= (Gpoint< P > &p, const Gdpoint< D > &dp) |
template<typename P , typename D > | |
P | operator/ (const Gpoint< P > &p, const value::scalar_< D > &dp) |
template<typename P > | |
std::ostream & | operator<< (std::ostream &ostr, const Gpoint< P > &p) |
template<typename L , typename R > | |
bool | operator== (const Gpoint< L > &lhs, const Gpoint< R > &rhs) |
Base class for implementation of point classes.
A point is an element of a space.
For instance, mln::point2d is the type of elements defined on the discrete square grid of the 2D plane.
|
protected |
|
related |
Add a delta-point rhs
to a grid point lhs
.
[in] | p | A grid point. |
[in] | dp | A delta-point. |
The type of dp
has to compatible with the type of p
.
\see mln::Gdpoint
|
related |
Shift a point by
a delta-point dp
.
[in,out] | p | The targeted point. |
[in] | dp | A delta-point. |
p
once translated by dp
.dp
has to be compatible with the type of p
.
|
related |
Difference between a couple of grid point lhs
and rhs
.
[in] | lhs | A first grid point. |
[in] | rhs | A second grid point. |
lhs
and rhs
have to be defined on the same topology and with the same type of coordinates; otherwise this test does not compile.dp
, is such as lhs
== rhs
+ dp
.\see mln::Gdpoint
|
related |
Shift a point by
the negate of a delta-point dp
.
[in,out] | p | The targeted point. |
[in] | dp | A delta-point. |
p
once translated by - dp
.dp
has to be compatible with the type of p
.
|
related |
Divise a point by
a scalar s
.
[in,out] | p | The targeted point. |
[in] | dp | A scalar. |
p
once divised by s
.
|
related |
Print a grid point p
into the output stream ostr
.
[in,out] | ostr | An output stream. |
[in] | p | A grid point. |
ostr
.
|
related |
Equality comparison between a couple of grid point lhs
and rhs
.
[in] | lhs | A first grid point. |
[in] | rhs | A second grid point. |
lhs
and rhs
have to be defined on the same topology; otherwise this test does not compile.typedef Gpoint<void> mln::Gpoint< E >::category |
|
inherited |