Represents a translation transformation. More...
Public Types | |
enum | |
typedef Transform< Scalar, Dim, Affine > | AffineTransformType |
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 > | |
AffineTransformType | 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 Scalar &sx, const Scalar &sy) | |
Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) | |
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) |
Represents a translation transformation.
This is defined in the Geometry module.
#include <Eigen/Geometry>
_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 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
Translation | ( | ) | [inline] |
Default constructor without initialization.
Translation | ( | const Scalar & | sx, |
const Scalar & | sy | ||
) | [inline] |
Translation | ( | const Scalar & | sx, |
const Scalar & | sy, | ||
const Scalar & | sz | ||
) | [inline] |
Translation | ( | const VectorType & | vector | ) | [inline, explicit] |
Constructs and initialize the translation transformation from a vector of translation coefficients
Translation | ( | const Translation< OtherScalarType, Dim > & | other | ) | [inline, explicit] |
Copy constructor with scalar type conversion
internal::cast_return_type<Translation,Translation<NewScalarType,Dim> >::type cast | ( | ) | const [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
.
Translation inverse | ( | ) | const [inline] |
bool isApprox | ( | const Translation & | other, |
typename NumTraits< Scalar >::Real | prec = NumTraits<Scalar>::dummy_precision() |
||
) | const [inline] |
true
if *this
is approximately equal to other, within the precision determined by prec.Translation operator* | ( | const Translation & | other | ) | const [inline] |
Concatenates two translation
Translation< Scalar, Dim >::AffineTransformType operator* | ( | const UniformScaling< Scalar > & | other | ) | const [inline] |
Concatenates a translation and a uniform scaling
Translation< Scalar, Dim >::AffineTransformType operator* | ( | const EigenBase< OtherDerived > & | linear | ) | const [inline] |
Concatenates a translation and a linear transformation
AffineTransformType operator* | ( | const RotationBase< Derived, Dim > & | r | ) | const [inline] |
Concatenates a translation and a rotation
Transform<Scalar,Dim,Mode> operator* | ( | const Transform< Scalar, Dim, Mode, Options > & | t | ) | const [inline] |
Concatenates a translation and a transformation
VectorType operator* | ( | const VectorType & | other | ) | const [inline] |
Applies translation to vector
AffineTransformType operator* | ( | const EigenBase< OtherDerived > & | linear, |
const Translation & | t | ||
) | [friend] |