Represents a translation transformation. More...
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, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherDerived > | |
AffineTransformType | operator* (const EigenBase< OtherDerived > &linear) const |
template<typename Derived > | |
std::enable_if_t< Derived::IsVectorAtCompileTime, VectorType > | operator* (const MatrixBase< Derived > &vec) 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 |
Translation | operator* (const Translation &other) const |
AffineTransformType | operator* (const UniformScaling< Scalar > &other) const |
Translation () | |
VectorType & | translation () |
const VectorType & | translation () const |
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 (const VectorType &vector) | |
VectorType & | vector () |
const VectorType & | vector () const |
Scalar & | x () |
Returns the x-translation as a reference. More... | |
Scalar | x () const |
Returns the x-translation by value. More... | |
Scalar & | y () |
Returns the y-translation as a reference. More... | |
Scalar | y () const |
Returns the y-translation by value. More... | |
Scalar & | z () |
Returns the z-translation as a reference. More... | |
Scalar | z () const |
Returns the z-translation by value. More... | |
Static Public Member Functions | |
static const Translation | Identity () |
Protected Attributes | |
VectorType | m_coeffs |
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 |
Definition at line 32 of file Translation.h.
typedef Transform<Scalar,Dim,Affine> Eigen::Translation< Scalar_, Dim_ >::AffineTransformType |
corresponding affine transformation type
Definition at line 45 of file Translation.h.
typedef Transform<Scalar,Dim,Isometry> Eigen::Translation< Scalar_, Dim_ >::IsometryTransformType |
corresponding isometric transformation type
Definition at line 47 of file Translation.h.
typedef Matrix<Scalar,Dim,Dim> Eigen::Translation< Scalar_, Dim_ >::LinearMatrixType |
corresponding linear transformation matrix type
Definition at line 43 of file Translation.h.
typedef Scalar_ Eigen::Translation< Scalar_, Dim_ >::Scalar |
the scalar type of the coefficients
Definition at line 39 of file Translation.h.
typedef Matrix<Scalar,Dim,1> Eigen::Translation< Scalar_, Dim_ >::VectorType |
corresponding vector type
Definition at line 41 of file Translation.h.
anonymous enum |
|
inline |
|
inline |
Definition at line 58 of file Translation.h.
|
inline |
Definition at line 65 of file Translation.h.
|
inlineexplicit |
Constructs and initialize the translation transformation from a vector of translation coefficients
Definition at line 73 of file Translation.h.
|
inlineexplicit |
|
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
.
Definition at line 151 of file Translation.h.
|
inlinestatic |
Definition at line 143 of file Translation.h.
|
inline |
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 163 of file Translation.h.
|
inline |
Concatenates a translation and a linear transformation
Definition at line 191 of file Translation.h.
|
inline |
|
inline |
Concatenates a translation and a rotation
Definition at line 108 of file Translation.h.
|
inline |
|
inline |
|
inline |
Definition at line 93 of file Translation.h.
|
inline |
Definition at line 92 of file Translation.h.
|
inline |
Definition at line 90 of file Translation.h.
|
inline |
Definition at line 89 of file Translation.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 51 of file Translation.h.