$extrastylesheet
#include <mln/core/alias/dpoint2d.hh>
Public Member Functions | |
dpoint2d () | |
template<typename C2 > | |
dpoint2d (const algebra::vec< dim, C2 > &v) | |
dpoint2d (def::coord row, def::coord col) | |
dpoint2d (const literal::zero_t &) | |
template<typename F > | |
dpoint2d (const Function_v2v< F > &f) | |
operator mln::algebra::vec< dpoint< mln::grid::square, def::coord >::dim, Q > () const | |
def::coord | operator[] (unsigned i) const |
def::coord & | operator[] (unsigned i) |
void | set_all (def::coordc) |
vec | to_vec () const |
Protected Attributes | |
mln::algebra::vec < mln::grid::square::dim, def::coord > | coord_ |
Public Types | |
enum | |
typedef Gdpoint< void > | category |
typedef def::coord | coord |
typedef E | exact_t |
typedef mln::grid::square | grid |
typedef point < mln::grid::square, def::coord > | psite |
typedef point < mln::grid::square, def::coord > | site |
typedef algebra::vec < mln::grid::square::dim, def::coord > | vec |
Type alias for a delta-point defined on the 2D square grid with integer coordinates.
This class stored relative positions of a site. It is meant to be used with point2d to compute a new point2d.
dpoint2d are also used in window2d to store the relative neighboors.
Definition at line 6 of file dpoint2d.dox.
mln::dpoint2d::dpoint2d | ( | ) |
Constructor without argument.
mln::dpoint2d::dpoint2d | ( | const algebra::vec< dim, C2 > & | v | ) |
Constructor from an algebra vector.
mln::dpoint2d::dpoint2d | ( | def::coord | row, |
def::coord | col | ||
) |
Constructor from coordinates.
mln::dpoint2d::dpoint2d | ( | const literal::zero_t & | ) |
Construct a dpoint with coordinates (0,0).
mln::dpoint2d::dpoint2d | ( | const Function_v2v< F > & | f | ) |
Constructor; coordinates are set by function f
.
|
inherited |
Conversion towards a algebra::vec.
|
inherited |
Read-only access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
|
inherited |
Read-write access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
|
inherited |
Set all coordinates to the value c
.
|
inherited |
Explicit conversion.
|
protectedinherited |
|
inherited |
Definition at line 103 of file gdpoint.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |