$extrastylesheet
#include <mln/core/concept/point.hh>
Public Member Functions | |
const P & | to_point () const |
Protected Member Functions | |
Point () |
Public Types | |
typedef Point_Site< void > | category |
typedef P | exact_t |
typedef P | point |
Related Functions | |
(Note that these are not member functions.) | |
template<typename P , typename D > | |
P & | operator+= (Point< P > &p, const Dpoint< D > &dp) |
template<typename P , typename D > | |
P & | operator-= (Point< P > &p, const Dpoint< D > &dp) |
template<typename P , typename D > | |
P & | operator/ (Point< P > &p, const value::Scalar< D > &dp) |
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.
Definition at line 68 of file concept/point.hh.
|
protected |
const P& mln::Point< P >::to_point | ( | ) | const |
|
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 |
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
.
|
inherited |
Definition at line 113 of file point_site.hh.
|
inherited |
typedef P mln::Point< P >::point |
The associated point type is itself.
Definition at line 72 of file concept/point.hh.