mln::algebra::h_vec< d, C > Struct Template Reference

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

#include <h_vec.hh>

Inherits mln::algebra::vec<d + 1, C>.

List of all members.

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 (const vec< d+1, C > &other)
 Constructor with the underlying vector.
 h_vec ()
 Constructor without argument.
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>
struct mln::algebra::h_vec< d, C >

N-Dimensional vector with homogeneous coordinates.


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).


Constructor & Destructor Documentation

template<unsigned d, typename C >
mln::algebra::h_vec< d, C >::h_vec (  )  [inline]

Constructor without argument.

References mln::literal::one.

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

Constructor with the underlying vector.


Member Function Documentation

template<unsigned n, typename T >
template<typename U >
mln::algebra::vec< n, T >::operator mat< n, 1, U > (  )  const [inline, inherited]

Conversion to a matrix.

template<unsigned n, typename T >
mat< 1, n, T > mln::algebra::vec< n, T >::t (  )  const [inline, inherited]

Transposition.

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

Back to the natural (non-homogeneous) space.


Member Data Documentation

template<unsigned n, typename T>
const vec< n, T > mln::algebra::vec< n, T >::origin = all_to(0) [inline, static, inherited]

Origin value.

template<unsigned n, typename T>
const vec< n, T > mln::algebra::vec< n, T >::zero = all_to(0) [inline, static, inherited]

Zero value.


Generated on Tue Jul 14 16:32:49 2009 for Milena (Olena) by  doxygen 1.5.9