$extrastylesheet
#include <mln/core/point.hh>
Public Member Functions | |
point () | |
template<typename C2 > | |
point (const mln::algebra::vec< dim, C2 > &v) | |
point (const mln::algebra::vec< dim, C > &v) | |
template<typename F > | |
point (const Function_v2v< F > &f) | |
mln::algebra::vec< G::dim, C > & | hook_coord_ () |
const C & | last_coord () const |
C & | last_coord () |
operator typename internal::vec_of_point< G, C >::ret () const | |
point< G, C > & | operator+= (const delta &dp) |
point< G, C > & | operator-= (const delta &dp) |
const C & | operator[] (unsigned i) const |
C & | operator[] (unsigned i) |
void | set_all (C c) |
h_vec | to_h_vec () const |
vec | to_vec () const |
point (C ind) | |
point (C row, C col) | |
point (C sli, C row, C col) | |
point (const literal::origin_t &) | |
point< G, C > & | operator= (const literal::origin_t &) |
point (const literal::zero_t &) | |
point< G, C > & | operator= (const literal::zero_t &) |
point (const literal::one_t &) | |
point< G, C > & | operator= (const literal::one_t &) |
Static Public Member Functions | |
static const point< G, C > & | minus_infty () |
static const point< G, C > & | plus_infty () |
Static Public Attributes | |
static const point< G, C > | origin |
Protected Attributes | |
mln::algebra::vec< G::dim, C > | coord_ |
Public Types | |
enum | { dim = G::dim } |
typedef Gpoint< void > | category |
typedef C | coord |
typedef dpoint< G, C > | delta |
typedef dpoint< G, C > | dpsite |
typedef point< G, C > | exact_t |
typedef G | grid |
typedef mln::algebra::h_vec < G::dim, float > | h_vec |
typedef point | psite |
typedef point | site |
typedef mln::algebra::vec < G::dim, float > | vec |
Generic point class.
Parameters are G
the grid of the space and C
the coordinate type in this space.
mln::point< G, C >::point | ( | ) |
Constructor without argument.
mln::point< G, C >::point | ( | const mln::algebra::vec< dim, C2 > & | v | ) |
Constructor from an algebra vector.
mln::point< G, C >::point | ( | const mln::algebra::vec< dim, C > & | v | ) |
|
explicit |
Constructors with different numbers of arguments (coordinates) w.r.t. the dimension.
mln::point< G, C >::point | ( | C | row, |
C | col | ||
) |
mln::point< G, C >::point | ( | C | sli, |
C | row, | ||
C | col | ||
) |
mln::point< G, C >::point | ( | const literal::origin_t & | ) |
Constructors/assignments with literals.
mln::point< G, C >::point | ( | const literal::zero_t & | ) |
mln::point< G, C >::point | ( | const literal::one_t & | ) |
mln::point< G, C >::point | ( | const Function_v2v< F > & | f | ) |
Constructor; coordinates are set by function f
.
mln::algebra::vec<G::dim, C>& mln::point< G, C >::hook_coord_ | ( | ) |
Return the underlying vector storing the coordinates.
const C& mln::point< G, C >::last_coord | ( | ) | const |
Read-only access to the last coordinate.
C& mln::point< G, C >::last_coord | ( | ) |
Read-write access to the last coordinate.
|
static |
Point with all coordinates set to the mininum value.
mln::point< G, C >::operator typename internal::vec_of_point< G, C >::ret | ( | ) | const |
point<G,C>& mln::point< G, C >::operator+= | ( | const delta & | dp | ) |
Shifting by dp
.
point<G,C>& mln::point< G, C >::operator-= | ( | const delta & | dp | ) |
Shifting by the
inverse of dp.
point<G,C>& mln::point< G, C >::operator= | ( | const literal::origin_t & | ) |
point<G,C>& mln::point< G, C >::operator= | ( | const literal::zero_t & | ) |
point<G,C>& mln::point< G, C >::operator= | ( | const literal::one_t & | ) |
const C& mln::point< G, C >::operator[] | ( | unsigned | i | ) | const |
Read-only access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
C& mln::point< G, C >::operator[] | ( | unsigned | i | ) |
Read-write access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
|
static |
Point with all coordinates set to the maximum value.
void mln::point< G, C >::set_all | ( | C | c | ) |
Set all coordinates to the value c
.
h_vec mln::point< G, C >::to_h_vec | ( | ) | const |
Transform to point in homogene coordinate system.
vec mln::point< G, C >::to_vec | ( | ) | const |
Explicit conversion towards mln::algebra::vec.
|
protected |
|
static |
|
inherited |
typedef C mln::point< G, C >::coord |
typedef dpoint<G,C> mln::point< G, C >::delta |
typedef dpoint<G,C> mln::point< G, C >::dpsite |
|
inherited |
typedef G mln::point< G, C >::grid |
typedef mln::algebra::h_vec<G::dim, float> mln::point< G, C >::h_vec |
typedef point mln::point< G, C >::psite |
typedef point mln::point< G, C >::site |
typedef mln::algebra::vec<G::dim, float> mln::point< G, C >::vec |