Represents a translation transformation. More...
#include <ForwardDeclarations.h>
Public Types | |
enum | { Dim = _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 > | |
EIGEN_DEVICE_FUNC internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type | cast () const |
Translation | inverse () const |
EIGEN_DEVICE_FUNC bool | isApprox (const Translation &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
EIGEN_DEVICE_FUNC Translation | operator* (const Translation &other) const |
EIGEN_DEVICE_FUNC AffineTransformType | operator* (const UniformScaling< Scalar > &other) const |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC AffineTransformType | operator* (const EigenBase< OtherDerived > &linear) const |
template<typename Derived > | |
EIGEN_DEVICE_FUNC IsometryTransformType | operator* (const RotationBase< Derived, Dim > &r) const |
template<int Mode, int Options> | |
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
template<typename Derived > | |
internal::enable_if< Derived::IsVectorAtCompileTime, VectorType >::type | operator* (const MatrixBase< Derived > &vec) const |
Translation & | operator= (const Translation &other) |
EIGEN_DEVICE_FUNC | Translation () |
EIGEN_DEVICE_FUNC | Translation (const Scalar &sx, const Scalar &sy) |
EIGEN_DEVICE_FUNC | Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) |
EIGEN_DEVICE_FUNC | Translation (const VectorType &vector) |
EIGEN_DEVICE_FUNC const VectorType & | translation () const |
EIGEN_DEVICE_FUNC VectorType & | translation () |
template<typename OtherScalarType > | |
EIGEN_DEVICE_FUNC | Translation (const Translation< OtherScalarType, Dim > &other) |
EIGEN_DEVICE_FUNC const VectorType & | vector () const |
EIGEN_DEVICE_FUNC VectorType & | vector () |
EIGEN_DEVICE_FUNC Scalar | x () const |
Retruns the x-translation by value. More... | |
EIGEN_DEVICE_FUNC Scalar & | x () |
Retruns the x-translation as a reference. More... | |
EIGEN_DEVICE_FUNC Scalar | y () const |
Retruns the y-translation by value. More... | |
EIGEN_DEVICE_FUNC Scalar & | y () |
Retruns the y-translation as a reference. More... | |
EIGEN_DEVICE_FUNC Scalar | z () const |
Retruns the z-translation by value. More... | |
EIGEN_DEVICE_FUNC Scalar & | z () |
Retruns the z-translation as a reference. More... | |
Static Public Member Functions | |
static const Translation | Identity () |
Protected Attributes | |
VectorType | m_coeffs |
Friends | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC AffineTransformType | operator* (const EigenBase< OtherDerived > &linear, const Translation &t) |
Represents a translation transformation.
_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 271 of file ForwardDeclarations.h.
typedef Transform<Scalar,Dim,Affine> Eigen::Translation< _Scalar, _Dim >::AffineTransformType |
corresponding affine transformation type
Definition at line 43 of file Translation.h.
typedef Transform<Scalar,Dim,Isometry> Eigen::Translation< _Scalar, _Dim >::IsometryTransformType |
corresponding isometric transformation type
Definition at line 45 of file Translation.h.
typedef Matrix<Scalar,Dim,Dim> Eigen::Translation< _Scalar, _Dim >::LinearMatrixType |
corresponding linear transformation matrix type
Definition at line 41 of file Translation.h.
typedef _Scalar Eigen::Translation< _Scalar, _Dim >::Scalar |
the scalar type of the coefficients
Definition at line 37 of file Translation.h.
typedef Matrix<Scalar,Dim,1> Eigen::Translation< _Scalar, _Dim >::VectorType |
corresponding vector type
Definition at line 39 of file Translation.h.
anonymous enum |
|
inline |
Default constructor without initialization.
Definition at line 54 of file Translation.h.
|
inline |
Definition at line 56 of file Translation.h.
|
inline |
Definition at line 63 of file Translation.h.
|
inlineexplicit |
Constructs and initialize the translation transformation from a vector of translation coefficients
Definition at line 71 of file Translation.h.
|
inlineexplicit |
Copy constructor with scalar type conversion
Definition at line 160 of file Translation.h.
|
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 155 of file Translation.h.
|
inlinestatic |
Definition at line 147 of file Translation.h.
|
inline |
Definition at line 139 of file Translation.h.
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 167 of file Translation.h.
|
inline |
Concatenates two translation
Definition at line 94 of file Translation.h.
|
inline |
Concatenates a translation and a uniform scaling
Definition at line 182 of file Translation.h.
|
inline |
Concatenates a translation and a linear transformation
Definition at line 195 of file Translation.h.
|
inline |
Concatenates a translation and a rotation
Definition at line 106 of file Translation.h.
|
inline |
Concatenates a translation and a transformation
Definition at line 125 of file Translation.h.
|
inline |
Applies translation to vector
Definition at line 135 of file Translation.h.
|
inline |
Definition at line 141 of file Translation.h.
|
inline |
Definition at line 90 of file Translation.h.
|
inline |
Definition at line 91 of file Translation.h.
|
inline |
Definition at line 87 of file Translation.h.
|
inline |
Definition at line 88 of file Translation.h.
|
inline |
Retruns the x-translation by value.
Definition at line 74 of file Translation.h.
|
inline |
Retruns the x-translation as a reference.
Definition at line 81 of file Translation.h.
|
inline |
Retruns the y-translation by value.
Definition at line 76 of file Translation.h.
|
inline |
Retruns the y-translation as a reference.
Definition at line 83 of file Translation.h.
|
inline |
Retruns the z-translation by value.
Definition at line 78 of file Translation.h.
|
inline |
Retruns the z-translation as a reference.
Definition at line 85 of file Translation.h.
|
friend |
Definition at line 112 of file Translation.h.
|
protected |
Definition at line 49 of file Translation.h.