Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::algebra::h_vec< d, C > Class Template Reference

N-Dimensional vector with homogeneous coordinates. More...

#include <h_vec.hh>

Inherits mln::algebra::vec< n, T >.

Public Types

enum  
 Dimension is the 'natural' one (3 for 3D), not the one of the vector (dim + 1). More...
 

Public Member Functions

 h_vec ()
 Constructor without argument.
 
 h_vec (const vec< d+1, C > &other)
 Constructor with the underlying vector.
 
template<typename U >
 operator mat< n, 1, U > () const
 Conversion to a matrix.
 
mat< 1, n, T > t () const
 Transposition.
 
vec< d, C > to_vec () const
 Back to the natural (non-homogeneous) space.
 

Static Public Attributes

static const vec< n, T > origin = all_to(0)
 Origin value.
 
static const vec< n, T > zero = all_to(0)
 Zero value.
 

Detailed Description

template<unsigned d, typename C>
class mln::algebra::h_vec< d, C >

N-Dimensional vector with homogeneous coordinates.

Definition at line 94 of file h_vec.hh.

Member Enumeration Documentation

template<unsigned d, typename C>
anonymous enum

Dimension is the 'natural' one (3 for 3D), not the one of the vector (dim + 1).

Definition at line 98 of file h_vec.hh.

Constructor & Destructor Documentation

template<unsigned d, typename C >
h_vec< d, C >::h_vec ( )
inline

Constructor without argument.

Definition at line 117 of file h_vec.hh.

References mln::literal::one.

template<unsigned d, typename C >
h_vec< d, C >::h_vec ( const vec< d+1, C > &  other)
inline

Constructor with the underlying vector.

Definition at line 128 of file h_vec.hh.

Member Function Documentation

template<unsigned n, typename T >
template<typename U >
vec< n, T >::operator mat< n, 1, U > ( ) const
inlineinherited

Conversion to a matrix.

Definition at line 368 of file algebra/mat.hh.

template<unsigned n, typename T >
mat< 1, n, T > vec< n, T >::t ( ) const
inlineinherited

Transposition.

Definition at line 795 of file mat_base.hh.

template<unsigned d, typename C >
vec< d, C > h_vec< d, C >::to_vec ( ) const
inline

Back to the natural (non-homogeneous) space.

Definition at line 145 of file h_vec.hh.

Member Data Documentation

template<unsigned n, typename T>
const vec< n, T > vec< n, T >::origin = all_to(0)
staticinherited

Origin value.

Definition at line 248 of file algebra/vec.hh.

template<unsigned n, typename T>
const vec< n, T > vec< n, T >::zero = all_to(0)
staticinherited

Zero value.

Definition at line 245 of file algebra/vec.hh.