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 V argument
typedef Function_v2v< void > category
typedef V::coord coord
typedef E exact_t
typedef translation< n, C > invert
 Type of the inverse function.
typedef algebra::h_mat< dim,
coord
matrix
typedef void mutable_result
typedef V result

Public Member Functions

invert inv () const
 Return the inverse function.
algebra::vec< n, C > inverse (const algebra::vec< n, C > &v) const
const matrixmat () const
operator() (const V &x) const
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.

Static Public Attributes

static const unsigned dim = V::dim

Protected Member Functions

void update ()

Protected Attributes

matrix m_
algebra::vec< n, C > t_


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<typename V, typename E>
typedef V mln::fun::internal::x2x_linear_impl_< V, E >::argument [inherited]

Definition at line 52 of file x2x_linear_impl.hh.

template<typename E>
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited]

template<typename V, typename E>
typedef V::coord mln::fun::internal::x2x_linear_impl_< V, E >::coord [inherited]

Definition at line 54 of file x2x_linear_impl.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.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 58 of file x2x/translation.hh.

template<typename V, typename E>
typedef algebra::h_mat<dim, coord> mln::fun::internal::x2x_linear_impl_< V, E >::matrix [inherited]

Definition at line 55 of file x2x_linear_impl.hh.

template<typename E>
typedef void mln::Function_v2v< E >::mutable_result [inherited]

Reimplemented in mln::util::array< T >.

Definition at line 94 of file function.hh.

template<typename V, typename E>
typedef V mln::fun::internal::x2x_linear_impl_< V, E >::result [inherited]

Definition at line 53 of file x2x_linear_impl.hh.


Constructor & Destructor Documentation

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

Constructor without argument.

Definition at line 89 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 95 of file x2x/translation.hh.

References mln::fun::x2x::translation< n, C >::update().


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 120 of file x2x/translation.hh.

References mln::fun::x2x::translation< n, C >::t_.

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

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

References mln::fun::x2x::translation< n, C >::t_.

template<typename V, typename E>
const x2x_linear_impl_< V, E >::matrix & mln::fun::internal::x2x_linear_impl_< V, E >::mat (  )  const [inline, inherited]

template<typename V, typename E>
V mln::fun::internal::x2x_linear_impl_< V, E >::operator() ( const V &  x  )  const [inline, inherited]

Definition at line 57 of file x2x_linear_impl.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 104 of file x2x/translation.hh.

References mln::fun::x2x::translation< n, C >::t_.

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

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 139 of file x2x/translation.hh.

References mln::fun::x2x::translation< n, C >::t_.

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


Member Data Documentation

template<typename V, typename E>
const unsigned mln::fun::internal::x2x_linear_impl_< V, E >::dim = V::dim [static, inherited]

Definition at line 50 of file x2x_linear_impl.hh.

template<typename V, typename E>
matrix mln::fun::internal::x2x_linear_impl_< V, E >::m_ [protected, inherited]

template<unsigned n, typename C>
algebra::vec<n,C> mln::fun::x2x::translation< n, C >::t_ [protected]


Generated on Sun Apr 25 02:01:56 2010 for Milena (Olena) by  doxygen 1.5.6