Public Types | Public Member Functions

mln::fun::x2x::translation< n, C > Struct Template Reference

Translation function-object. More...

#include <translation.hh>

Inheritance diagram for mln::fun::x2x::translation< n, C >:
Inheritance graph

List of all members.

Public Types

typedef C data_t
 Type of the underlying data stored in vectors and matrices.
typedef translation< n, C > invert
 Type of the inverse function.

Public Member Functions

invert inv () const
 Return the inverse function.
algebra::vec< n, C > operator() (const algebra::vec< n, C > &v) const
 Perform the translation of the given vector.
void set_t (const algebra::vec< n, C > &t)
 Set a net translation vector.
const algebra::vec< n, C > & t () const
 Return the translation vector.
 translation (const algebra::vec< n, C > &t)
 Constructor with the translation vector.
 translation ()
 Constructor without argument.

Detailed Description

template<unsigned n, typename C>
struct mln::fun::x2x::translation< n, C >

Translation function-object.

Definition at line 52 of file x2x/translation.hh.


Member Typedef Documentation

template<unsigned n, typename C >
typedef C mln::fun::x2x::translation< n, C >::data_t

Type of the underlying data stored in vectors and matrices.

Definition at line 59 of file x2x/translation.hh.

template<unsigned n, typename C >
typedef translation<n,C> mln::fun::x2x::translation< n, C >::invert

Type of the inverse function.

Definition at line 62 of file x2x/translation.hh.


Constructor & Destructor Documentation

template<unsigned n, typename C >
mln::fun::x2x::translation< n, C >::translation (  )  [inline]

Constructor without argument.

Definition at line 93 of file x2x/translation.hh.

template<unsigned n, typename C >
mln::fun::x2x::translation< n, C >::translation ( const algebra::vec< n, C > &  t  )  [inline]

Constructor with the translation vector.

Definition at line 99 of file x2x/translation.hh.


Member Function Documentation

template<unsigned n, typename C >
translation< n, C > mln::fun::x2x::translation< n, C >::inv (  )  const [inline]

Return the inverse function.

Definition at line 124 of file x2x/translation.hh.

template<unsigned n, typename C >
algebra::vec< n, C > mln::fun::x2x::translation< n, C >::operator() ( const algebra::vec< n, C > &  v  )  const [inline]

Perform the translation of the given vector.

Definition at line 108 of file x2x/translation.hh.

template<unsigned n, typename C >
void mln::fun::x2x::translation< n, C >::set_t ( const algebra::vec< n, C > &  t  )  [inline]

Set a net translation vector.

Definition at line 134 of file x2x/translation.hh.

template<unsigned n, typename C >
const algebra::vec< n, C > & mln::fun::x2x::translation< n, C >::t (  )  const [inline]

Return the translation vector.

Definition at line 143 of file x2x/translation.hh.