Public Types |
enum | { dim = G::dim
} |
typedef C | coord |
| Coordinate associated type.
|
typedef dpoint< G, C > | delta |
| Delta associated type.
|
typedef dpoint< G, C > | dpsite |
| DPsite associated type.
|
typedef G | grid |
| Grid associated type.
|
typedef mln::algebra::h_vec
< G::dim, float > | h_vec |
| Algebra hexagonal vector (hvec) associated type.
|
typedef mln::algebra::vec
< G::dim, float > | vec |
| Algebra vector (vec) associated type.
|
Public Member Functions |
const C & | last_coord () const |
| Read-only access to the last coordinate.
|
C & | last_coord () |
| Read-write access to the last coordinate.
|
point< G, C > & | operator+= (const delta &dp) |
| Shifting by dp .
|
point< G, C > & | operator-= (const delta &dp) |
| Shifting by the inverse of dp.
|
const C & | operator[] (unsigned i) const |
| Read-only access to the i-th coordinate value.
|
C & | operator[] (unsigned i) |
| Read-write access to the i-th coordinate value.
|
| point () |
| Constructor without argument.
|
template<typename C2 > |
| point (const mln::algebra::vec< dim, C2 > &v) |
| Constructor from an algebra vector.
|
template<typename F > |
| point (const Function_v2v< F > &f) |
| Constructor; coordinates are set by function f .
|
void | set_all (C c) |
| Set all coordinates to the value c .
|
h_vec | to_h_vec () const |
| Transform to point in homogene coordinate system.
|
vec | to_vec () const |
| Explicit conversion towards mln::algebra::vec.
|
|
| point (C ind) |
|
| point (const literal::origin_t &) |
| Constructors/assignments with literals.
|
Static Public Member Functions |
static const point< G, C > & | minus_infty () |
| Point with all coordinates set to the mininum value.
|
static const point< G, C > & | plus_infty () |
| Point with all coordinates set to the maximum value.
|
Static Public Attributes |
static const point< G, C > | origin = all_to(0) |
| Origin point (all coordinates are 0).
|
template<typename G, typename C>
struct mln::point< G, C >
Generic point class.
Parameters are n
the dimension of the space and C
the coordinate type in this space.
Definition at line 108 of file point.hh.