![]() |
Eigen
3.2.7
|
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 |
Public Types | |
| enum | |
| 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 () | |
| Translation (const VectorType &vector) | |
| template<typename OtherScalarType > | |
| Translation (const Translation< OtherScalarType, Dim > &other) | |
| 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. | |
Friends | |
| template<typename OtherDerived > | |
| AffineTransformType | operator* (const EigenBase< OtherDerived > &linear, const Translation &t) |
| 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
| anonymous enum |
dimension of the space
|
inline |
Default constructor without initialization.
Referenced by Translation< Scalar, Dim >::inverse(), and Translation< Scalar, Dim >::operator*().
|
inlineexplicit |
Constructs and initialize the translation transformation from a vector of translation coefficients
|
inlineexplicit |
Copy constructor with scalar type conversion
|
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.
|
inline |
References Translation< Scalar, Dim >::Translation().
|
inline |
true if *this is approximately equal to other, within the precision determined by prec.
|
inline |
Concatenates two translation
References Translation< Scalar, Dim >::Translation().
|
inline |
Concatenates a translation and a uniform scaling
References 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
|
inline |
Concatenates a translation and a rotation
|
inline |
Concatenates a translation and a transformation
|
inline |
Applies translation to vector
|
friend |