Represents a translation transformation. More...
Public Types | |
enum | { Dim } |
typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
typedef _Scalar | Scalar |
typedef Scaling< Scalar, Dim > | ScalingType |
typedef Transform< Scalar, Dim > | TransformType |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
template<typename NewScalarType > | |
ei_cast_return_type < Translation, Translation < NewScalarType, Dim > >::type | cast () const |
Translation | inverse () const |
bool | isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
TransformType | operator* (const ScalingType &other) const |
TransformType | operator* (const LinearMatrixType &linear) const |
template<typename Derived > | |
TransformType | operator* (const RotationBase< Derived, Dim > &r) const |
TransformType | operator* (const TransformType &t) const |
VectorType | operator* (const VectorType &other) const |
Translation | operator* (const Translation &other) const |
Translation & | operator= (const Translation &other) |
Translation (const Scalar &sx, const Scalar &sy) | |
Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) | |
template<typename OtherScalarType > | |
Translation (const Translation< OtherScalarType, Dim > &other) | |
Translation () | |
Translation (const VectorType &vector) | |
VectorType & | vector () |
const VectorType & | vector () const |
Protected Attributes | |
VectorType | m_coeffs |
Friends | |
TransformType | operator* (const LinearMatrixType &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 Matrix<Scalar,Dim,Dim> LinearMatrixType |
corresponding linear transformation matrix type
typedef _Scalar Scalar |
the scalar type of the coefficients
typedef Scaling<Scalar,Dim> ScalingType |
corresponding scaling transformation type
typedef Transform<Scalar,Dim> TransformType |
corresponding affine transformation type
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 scaling transformation from a vector of scaling coefficients
Translation | ( | const Translation< OtherScalarType, Dim > & | other | ) | [inline, explicit] |
Copy constructor with scalar type conversion
ei_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 | ( | void | ) | const [inline] |
bool isApprox | ( | const Translation< _Scalar, _Dim > & | other, |
typename NumTraits< Scalar >::Real | prec = precision<Scalar>() |
||
) | const [inline] |
true
if *this
is approximately equal to other, within the precision determined by prec.Translation< Scalar, Dim >::TransformType operator* | ( | const ScalingType & | other | ) | const [inline] |
Concatenates a translation and a scaling
VectorType operator* | ( | const VectorType & | other | ) | const [inline] |
Applies translation to vector
Translation operator* | ( | const Translation< _Scalar, _Dim > & | other | ) | const [inline] |
Concatenates two translation
Translation< Scalar, Dim >::TransformType operator* | ( | const TransformType & | t | ) | const [inline] |
Concatenates a translation and an affine transformation
Translation< Scalar, Dim >::TransformType operator* | ( | const LinearMatrixType & | linear | ) | const [inline] |
Concatenates a translation and a linear transformation
TransformType operator* | ( | const LinearMatrixType & | linear, |
const Translation< _Scalar, _Dim > & | t | ||
) | [friend] |
Concatenates a linear transformation and a translation