$extrastylesheet
Public Member Functions | |
| point2d_h () | |
| template<typename C2 > | |
| point2d_h (const mln::algebra::vec< dim, C2 > &v) | |
| point2d_h (const mln::algebra::vec< dim, mln::def::coord > &v) | |
| point2d_h (mln::def::coord row, mln::def::coord col) | |
| point2d_h (const literal::origin_t &) | |
| template<typename F > | |
| point2d_h (const Function_v2v< F > &f) | |
| const C & | col () const |
| C & | col () |
| mln::algebra::vec < mln::grid::hexa::dim, mln::def::coord > & | hook_coord_ () |
| const mln::def::coord & | last_coord () const |
| mln::def::coord & | last_coord () |
| operator typename internal::vec_of_point< mln::grid::hexa, mln::def::coord >::ret () const | |
| point< mln::grid::hexa, mln::def::coord > & | operator+= (const delta &dp) |
| point< mln::grid::hexa, mln::def::coord > & | operator-= (const delta &dp) |
| const mln::def::coord & | operator[] (unsigned i) const |
| mln::def::coord & | operator[] (unsigned i) |
| const C & | row () const |
| C & | row () |
| void | set_all (mln::def::coordc) |
| h_vec | to_h_vec () const |
| vec | to_vec () const |
Static Public Member Functions | |
| static const point < mln::grid::hexa, mln::def::coord > & | minus_infty () |
| static const point < mln::grid::hexa, mln::def::coord > & | plus_infty () |
Static Public Attributes | |
| static const point < mln::grid::hexa, mln::def::coord > | origin |
Protected Attributes | |
| mln::algebra::vec < mln::grid::hexa::dim, mln::def::coord > | coord_ |
Public Types | |
| enum | |
| typedef Gpoint< void > | category |
| typedef mln::def::coord | coord |
| typedef dpoint < mln::grid::hexa, mln::def::coord > | delta |
| typedef dpoint < mln::grid::hexa, mln::def::coord > | dpsite |
| typedef E | exact_t |
| typedef mln::grid::hexa | grid |
| typedef mln::algebra::h_vec < mln::grid::hexa::dim, float > | h_vec |
| typedef point | psite |
| typedef point | site |
| typedef mln::algebra::vec < mln::grid::hexa::dim, float > | vec |
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) |
Definition at line 6 of file point2d_h.dox.
| mln::point2d_h::point2d_h | ( | ) |
Constructor without argument.
| mln::point2d_h::point2d_h | ( | const mln::algebra::vec< dim, C2 > & | v | ) |
Construct an hexagonal 2D point from an algebra vector.
| mln::point2d_h::point2d_h | ( | const mln::algebra::vec< dim, mln::def::coord > & | v | ) |
Construct an hexagonal 2D point from an algebra vector.
| mln::point2d_h::point2d_h | ( | mln::def::coord | row, |
| mln::def::coord | col | ||
| ) |
Construct an hexagonal 2D point at row row and column col.
| mln::point2d_h::point2d_h | ( | const literal::origin_t & | ) |
Construct an hexagonal 2D point at (0,0).
| mln::point2d_h::point2d_h | ( | const Function_v2v< F > & | f | ) |
Coordinates are set by function f.
|
inherited |
Column index.
|
inherited |
Column index.
|
inherited |
Return the underlying vector storing the coordinates.
|
inherited |
Read-only access to the last coordinate.
|
inherited |
Read-write access to the last coordinate.
|
staticinherited |
Point with all coordinates set to the mininum value.
|
inherited |
|
inherited |
Shifting by dp.
|
inherited |
Shifting by the inverse of dp.
|
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
|
staticinherited |
Point with all coordinates set to the maximum value.
|
inherited |
Row index.
|
inherited |
Row index.
|
inherited |
Set all coordinates to the value c.
|
inherited |
Transform to point in homogene coordinate system.
|
inherited |
Explicit conversion towards mln::algebra::vec.
|
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.
|
protectedinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |