Represents a translation transformation. More...
#include <Translation.h>
Public Types | |
| enum | { Dim } |
| typedef Transform< Scalar, Dim, Affine > | AffineTransformType |
| typedef Transform< Scalar, Dim, Isometry > | IsometryTransformType |
| typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
| typedef _Scalar | Scalar |
| typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
| template<typename NewScalarType > | |
| internal::cast_return_type < Translation, Translation < NewScalarType, Dim > >::type | cast () const |
| Translation | inverse () const |
| bool | isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
| Translation | operator* (const Translation &other) const |
| AffineTransformType | operator* (const UniformScaling< Scalar > &other) const |
| template<typename OtherDerived > | |
| AffineTransformType | operator* (const EigenBase< OtherDerived > &linear) const |
| template<typename Derived > | |
| IsometryTransformType | operator* (const RotationBase< Derived, Dim > &r) const |
| template<int Mode, int Options> | |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| VectorType | operator* (const VectorType &other) const |
| Translation & | operator= (const Translation &other) |
| Translation () | |
| Translation (const Scalar &sx, const Scalar &sy) | |
| Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) | |
| Translation (const VectorType &vector) | |
| const VectorType & | translation () const |
| VectorType & | translation () |
| template<typename OtherScalarType > | |
| Translation (const Translation< OtherScalarType, Dim > &other) | |
| const VectorType & | vector () const |
| VectorType & | vector () |
| Scalar | x () const |
| Retruns the x-translation by value. | |
| Scalar & | x () |
| Retruns the x-translation as a reference. | |
| Scalar | y () const |
| Retruns the y-translation by value. | |
| Scalar & | y () |
| Retruns the y-translation as a reference. | |
| Scalar | z () const |
| Retruns the z-translation by value. | |
| Scalar & | z () |
| Retruns the z-translation as a reference. | |
Static Public Member Functions | |
| static const Translation | Identity () |
Protected Attributes | |
| VectorType | m_coeffs |
Friends | |
| template<typename OtherDerived > | |
| AffineTransformType | operator* (const EigenBase< OtherDerived > &linear, const Translation &t) |
Represents a translation transformation.
This is defined in the Geometry module.
| _Scalar | the scalar type, i.e., the type of the coefficients. |
| _Dim | the dimension of the space, can be a compile time value or Dynamic |
| typedef Transform<Scalar,Dim,Affine> AffineTransformType |
corresponding affine transformation type
| typedef Transform<Scalar,Dim,Isometry> IsometryTransformType |
corresponding isometric transformation type
| typedef Matrix<Scalar,Dim,Dim> LinearMatrixType |
corresponding linear transformation matrix type
| typedef _Scalar Scalar |
the scalar type of the coefficients
| typedef Matrix<Scalar,Dim,1> VectorType |
corresponding vector type
|
inline |
Default constructor without initialization.
Referenced by Translation< _Scalar, _Dim >::Identity(), Translation< _Scalar, _Dim >::inverse(), and Translation< _Scalar, _Dim >::operator*().
|
inline |
|
inline |
|
inlineexplicit |
Constructs and initialize the translation transformation from a vector of translation coefficients
|
inlineexplicit |
Copy constructor with scalar type conversion
References Translation< _Scalar, _Dim >::m_coeffs, and Translation< _Scalar, _Dim >::vector().
|
inline |
*this with scalar type casted to NewScalarType Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
|
inlinestatic |
References Translation< _Scalar, _Dim >::Translation().
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs, and Translation< _Scalar, _Dim >::Translation().
|
inline |
true if *this is approximately equal to other, within the precision determined by prec.References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Concatenates two translation
References Translation< _Scalar, _Dim >::m_coeffs, and Translation< _Scalar, _Dim >::Translation().
|
inline |
Concatenates a translation and a uniform scaling
References UniformScaling< _Scalar >::factor(), Transform< _Scalar, _Dim, _Mode, _Options >::linear(), Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), PlainObjectBase< Derived >::setZero(), and Transform< _Scalar, _Dim, _Mode, _Options >::translation().
|
inline |
Concatenates a translation and a linear transformation
References EigenBase< Derived >::derived(), Transform< _Scalar, _Dim, _Mode, _Options >::linear(), Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), DenseBase< Derived >::row(), PlainObjectBase< Derived >::setZero(), and Transform< _Scalar, _Dim, _Mode, _Options >::translation().
|
inline |
Concatenates a translation and a rotation
|
inline |
Concatenates a translation and a transformation
References Translation< _Scalar, _Dim >::m_coeffs, and Transform< _Scalar, _Dim, _Mode, _Options >::pretranslate().
|
inline |
Applies translation to vector
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs.
Referenced by UniformScaling< _Scalar >::operator*(), Transform< _Scalar, _Dim, _Mode, _Options >::operator*(), Transform< _Scalar, _Dim, _Mode, _Options >::operator*=(), Transform< _Scalar, _Dim, _Mode, _Options >::operator=(), and Translation< _Scalar, _Dim >::Translation().
|
inline |
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the x-translation by value.
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the x-translation as a reference.
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the y-translation by value.
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the y-translation as a reference.
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the z-translation by value.
References Translation< _Scalar, _Dim >::m_coeffs.
|
inline |
Retruns the z-translation as a reference.
References Translation< _Scalar, _Dim >::m_coeffs.
|
friend |
|
protected |
Referenced by Translation< _Scalar, _Dim >::inverse(), Translation< _Scalar, _Dim >::isApprox(), Translation< _Scalar, _Dim >::operator*(), Translation< _Scalar, _Dim >::operator=(), Translation< _Scalar, _Dim >::Translation(), Translation< _Scalar, _Dim >::translation(), Translation< _Scalar, _Dim >::vector(), Translation< _Scalar, _Dim >::x(), Translation< _Scalar, _Dim >::y(), and Translation< _Scalar, _Dim >::z().
1.8.1.1