#include <translation.hh>
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 matrix & | mat () const |
V | 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_ |
Definition at line 52 of file x2x/translation.hh.
typedef V mln::fun::internal::x2x_linear_impl_< V, E >::argument [inherited] |
Definition at line 52 of file x2x_linear_impl.hh.
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited] |
Reimplemented from mln::Function< E >.
Reimplemented in mln::Function_v2b< E >, mln::Function_v2b< f_box2d_t >, mln::Function_v2b< mln::fun::v2b::lnot< V > >, mln::Function_v2b< mln::fun::p2b::antilogy >, mln::Function_v2b< mln::fun::p2b::has< I > >, mln::Function_v2b< mln::fun::p2b::tautology >, mln::Function_v2b< keep_specific_colors >, mln::Function_v2b< my_box2d >, mln::Function_v2b< mln::topo::is_simple_cell< I > >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_edge >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_row_odd >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_pixel >, mln::Function_v2b< mln::fun::v2b::threshold< V > >, mln::Function_v2b< mln::world::inter_pixel::is_separator >, mln::Function_v2b< mln::topo::is_n_face< N > >, mln::Function_v2b< not_to_remove >, mln::Function_v2b< mln::fun::p2b::chess >, mln::Function_v2b< f_box1d_t >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_dot >, mln::Function_v2b< mln::fun::p2b::big_chess< B > >, mln::Function_v2b< mln::world::inter_pixel::is_pixel >, and mln::Function_v2b< f_box3d_t >.
Definition at line 93 of file function.hh.
typedef V::coord mln::fun::internal::x2x_linear_impl_< V, E >::coord [inherited] |
Definition at line 54 of file x2x_linear_impl.hh.
typedef E mln::Object< E >::exact_t [inherited] |
typedef translation<n,C> mln::fun::x2x::translation< n, C >::invert |
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.
typedef void mln::Function_v2v< E >::mutable_result [inherited] |
typedef V mln::fun::internal::x2x_linear_impl_< V, E >::result [inherited] |
Definition at line 53 of file x2x_linear_impl.hh.
mln::fun::x2x::translation< n, C >::translation | ( | ) | [inline] |
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().
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_.
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_.
const x2x_linear_impl_< V, E >::matrix & mln::fun::internal::x2x_linear_impl_< V, E >::mat | ( | ) | const [inline, inherited] |
Definition at line 85 of file x2x_linear_impl.hh.
References mln::fun::internal::x2x_linear_impl_< V, E >::m_.
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.
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_.
void mln::fun::x2x::translation< n, C >::set_t | ( | const algebra::vec< n, C > & | t | ) | [inline] |
Set a net translation vector.
Definition at line 130 of file x2x/translation.hh.
References mln::fun::x2x::translation< n, C >::t_, and mln::fun::x2x::translation< n, C >::update().
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_.
void mln::fun::x2x::translation< n, C >::update | ( | ) | [inline, protected] |
Definition at line 147 of file x2x/translation.hh.
References mln::fun::internal::x2x_linear_impl_< V, E >::m_, and mln::fun::x2x::translation< n, C >::t_.
Referenced by mln::fun::x2x::translation< n, C >::set_t(), and mln::fun::x2x::translation< n, C >::translation().
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.
matrix mln::fun::internal::x2x_linear_impl_< V, E >::m_ [protected, inherited] |
Definition at line 68 of file x2x_linear_impl.hh.
Referenced by mln::fun::internal::x2x_linear_impl_< V, E >::mat(), mln::fun::internal::x2x_linear_impl_< T2::result, E >::operator()(), mln::fun::x2x::rotation< n, C >::operator()(), mln::fun::x2x::rotation< n, C >::rotation(), mln::fun::x2x::translation< n, C >::update(), and mln::fun::x2x::rotation< n, C >::update().
algebra::vec<n,C> mln::fun::x2x::translation< n, C >::t_ [protected] |
Definition at line 81 of file x2x/translation.hh.
Referenced by mln::fun::x2x::translation< n, C >::inv(), mln::fun::x2x::translation< n, C >::inverse(), mln::fun::x2x::translation< n, C >::operator()(), mln::fun::x2x::translation< n, C >::set_t(), mln::fun::x2x::translation< n, C >::t(), and mln::fun::x2x::translation< n, C >::update().