N-Dimensional vector with homogeneous coordinates.
More...
#include <h_vec.hh>
List of all members.
Public Types |
enum | |
enum | { dim = d
} |
| Dimension is the 'natural' one (3 for 3D), not the one of the vector (dim + 1).
More...
|
typedef Object< void > | category |
typedef C | coord |
typedef C | enc [n] |
typedef C | equiv [n] |
typedef vec< n, C > | exact_t |
Public Member Functions |
| h_vec () |
| Constructor without argument.
|
| h_vec (const vec< d+1, C > &other) |
| Constructor with the underlying vector.
|
const vec< n, C > & | normalize () |
| operator mat< n, 1, U > () const |
| Conversion to a matrix.
|
h_vec & | operator= (const vec< d+1, C > &rhs) |
const C & | operator[] (unsigned i) const |
C & | operator[] (unsigned i) |
void | set_all (const C &val) |
unsigned | size () const |
mat< 1, n, C > | t () const |
| Transposition.
|
algebra::h_vec< n, C > | to_h_vec () const |
vec< d, C > | to_vec () const |
| Back to the natural (non-homogeneous) space.
|
Static Public Attributes |
static const vec< n, C > | origin |
| Origin value.
|
static const vec< n, C > | zero |
| Zero value.
|
Protected Attributes |
C | data_ [n] |
Detailed Description
template<unsigned d, typename C>
struct mln::algebra::h_vec< d, C >
N-Dimensional vector with homogeneous coordinates.
Member Typedef Documentation
Member Enumeration Documentation
anonymous enum [inherited] |
template<unsigned d, typename C>
Dimension is the 'natural' one (3 for 3D), not the one of the vector (dim + 1).
- Enumerator:
-
Constructor & Destructor Documentation
template<unsigned d, typename C >
template<unsigned d, typename C >
Constructor with the underlying vector.
Member Function Documentation
template<unsigned d, typename C >
template<unsigned d, typename C >
Member Data Documentation