#include <point.hh>
Public Types | |
typedef Point_Site< void > | category |
typedef P | exact_t |
typedef P | point |
The associated point type is itself. | |
Public Member Functions | |
const P & | to_point () const |
It is a Point so it returns itself. | |
Protected Member Functions | |
Point () | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename P, typename D> | |
P & | operator+= (Point< P > &p, const Dpoint< D > &dp) |
Shift a point by a delta-point dp . | |
template<typename P, typename D> | |
P & | operator-= (Point< P > &p, const Dpoint< D > &dp) |
Shift a point by the negate of a delta-point dp . | |
template<typename P, typename D> | |
P & | operator/ (Point< P > &p, const value::Scalar< D > &dp) |
Divise a point by a scalar s . |
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.
Definition at line 62 of file concept/point.hh.
typedef Point_Site<void> mln::Point_Site< P >::category [inherited] |
typedef P mln::Object< P >::exact_t [inherited] |
typedef P mln::Point< P >::point |
mln::Point< P >::Point | ( | ) | [inline, protected] |
Definition at line 123 of file concept/point.hh.
const P & mln::Point< P >::to_point | ( | ) | const [inline] |
It is a Point so it returns itself.
Definition at line 130 of file concept/point.hh.
References mln::exact().
P & operator+= | ( | Point< P > & | p, | |
const Dpoint< D > & | dp | |||
) | [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
. Definition at line 137 of file concept/point.hh.
P & operator-= | ( | Point< P > & | p, | |
const Dpoint< D > & | dp | |||
) | [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
. Definition at line 149 of file concept/point.hh.
P & operator/ | ( | Point< P > & | p, | |
const value::Scalar< D > & | dp | |||
) | [related] |
Divise a point by
a scalar s
.
[in,out] | p | The targeted point. |
[in] | dp | A scalar. |
p
once divised by s
. Definition at line 163 of file concept/point.hh.