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 |
Translation | operator* (const Translation &other) 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) |
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) | |
const VectorType & | vector () const |
VectorType & | vector () |
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.
_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
|
inline |
Default constructor without initialization.
|
inline |
|
inline |
|
inlineexplicit |
Constructs and initialize the scaling transformation from a vector of scaling 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 |
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.
|
inline |
Concatenates two translation
|
inline |
Concatenates a translation and a scaling
|
inline |
Concatenates a translation and a linear transformation
|
inline |
Concatenates a translation and an affine transformation
|
inline |
Applies translation to vector
|
friend |
Concatenates a linear transformation and a translation