Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
Eigen::Transform Class Reference

Detailed Description

Represents an homogeneous transformation in a N dimensional space

Template Parameters:
_Scalarthe scalar type, i.e., the type of the coefficients
_Dimthe dimension of the space
_Modethe type of the transformation. Can be:
  • Affine: the transformation is stored as a (Dim+1)^2 matrix, where the last row is assumed to be [0 ... 0 1].
  • AffineCompact: the transformation is stored as a (Dim)x(Dim+1) matrix.
  • Projective: the transformation is stored as a (Dim+1)^2 matrix without any assumption.
_Optionshas the same meaning as in class Matrix. It allows to specify DontAlign and/or RowMajor. These Options are passed directly to the underlying matrix type.

The homography is internally represented and stored by a matrix which is available through the matrix() method. To understand the behavior of this class you have to think a Transform object as its internal matrix representation. The chosen convention is right multiply:

 v' = T * v 

Therefore, an affine transformation matrix M is shaped like this:

$ \left( \begin{array}{cc} linear & translation\\ 0 ... 0 & 1 \end{array} \right) $

Note that for a projective transformation the last row can be anything, and then the interpretation of different parts might be sightly different.

However, unlike a plain matrix, the Transform class provides many features simplifying both its assembly and usage. In particular, it can be composed with any other transformations (Transform,Translation,RotationBase,Matrix) and can be directly used to transform implicit homogeneous vectors. All these operations are handled via the operator*. For the composition of transformations, its principle consists to first convert the right/left hand sides of the product to a compatible (Dim+1)^2 matrix and then perform a pure matrix product. Of course, internally, operator* tries to perform the minimal number of operations according to the nature of each terms. Likewise, when applying the transform to non homogeneous vectors, the latters are automatically promoted to homogeneous one before doing the matrix product. The convertions to homogeneous representations are performed as follow:

Translation t (Dim)x(1): $ \left( \begin{array}{cc} I & t \\ 0\,...\,0 & 1 \end{array} \right) $

Rotation R (Dim)x(Dim): $ \left( \begin{array}{cc} R & 0\\ 0\,...\,0 & 1 \end{array} \right) $

Linear Matrix L (Dim)x(Dim): $ \left( \begin{array}{cc} L & 0\\ 0\,...\,0 & 1 \end{array} \right) $

Affine Matrix A (Dim)x(Dim+1): $ \left( \begin{array}{c} A\\ 0\,...\,0\,1 \end{array} \right) $

Column vector v (Dim)x(1): $ \left( \begin{array}{c} v\\ 1 \end{array} \right) $

Set of column vectors V1...Vn (Dim)x(n): $ \left( \begin{array}{ccc} v_1 & ... & v_n\\ 1 & ... & 1 \end{array} \right) $

The concatenation of a Transform object with any kind of other transformation always returns a Transform object.

A little exception to the "as pure matrix product" rule is the case of the transformation of non homogeneous vectors by an affine transformation. In that case the last matrix row can be ignored, and the product returns non homogeneous vectors.

Since, for instance, a Dim x Dim matrix is interpreted as a linear transformation, it is not possible to directly transform Dim vectors stored in a Dim x Dim matrix. The solution is either to use a Dim x Dynamic matrix or explicitly request a vector transformation by making the vector homogeneous:

 m' = T * m.colwise().homogeneous();

Note that there is zero overhead.

Conversion methods from/to Qt's QMatrix and QTransform are available if the preprocessor token EIGEN_QT_SUPPORT is defined.

This class can be extended with the help of the plugin mechanism described on the page TopicCustomizingEigen by defining the preprocessor symbol EIGEN_TRANSFORM_PLUGIN.

See also:
class Matrix, class Quaternion

List of all members.

Public Types

enum  { TransformTimeDiagonalMode = ((Mode==int(Isometry))?Affine:int(Mode)) }
typedef _Scalar Scalar
 the scalar type of the coefficients
typedef DenseIndex Index
typedef
internal::make_proper_matrix_type
< Scalar, Rows, HDim, Options >
::type 
MatrixType
 type of the matrix used to represent the transformation
typedef const MatrixType ConstMatrixType
 constified MatrixType
typedef Matrix< Scalar, Dim,
Dim, Options > 
LinearMatrixType
 type of the matrix used to represent the linear part of the transformation
typedef Block< MatrixType, Dim,
Dim > 
LinearPart
 type of read/write reference to the linear part of the transformation
typedef const Block
< ConstMatrixType, Dim, Dim > 
ConstLinearPart
 type of read reference to the linear part of the transformation
typedef internal::conditional
< int(Mode)==int(AffineCompact),
MatrixType &, Block
< MatrixType, Dim, HDim >
>::type 
AffinePart
 type of read/write reference to the affine part of the transformation
typedef internal::conditional
< int(Mode)==int(AffineCompact),
const MatrixType &, const
Block< const MatrixType, Dim,
HDim > >::type 
ConstAffinePart
 type of read reference to the affine part of the transformation
typedef Matrix< Scalar, Dim, 1 > VectorType
 type of a vector
typedef Block< MatrixType, Dim, 1 > TranslationPart
 type of a read/write reference to the translation part of the rotation
typedef const Block
< ConstMatrixType, Dim, 1 > 
ConstTranslationPart
 type of a read reference to the translation part of the rotation
typedef Translation< Scalar, Dim > TranslationType
 corresponding translation type
typedef Transform< Scalar, Dim,
TransformTimeDiagonalMode > 
TransformTimeDiagonalReturnType
 The return type of the product between a diagonal matrix and a transform.
typedef
internal::transform_take_affine_part
< Transform
take_affine_part

Public Member Functions

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE (_Scalar, _Dim==Dynamic?Dynamic:(_Dim+1)*(_Dim+1)) enum
 Transform ()
 Default constructor without initialization of the meaningful coefficients.
 Transform (const Transform &other)
 Transform (const TranslationType &t)
 Transform (const UniformScaling< Scalar > &s)
template<typename Derived >
 Transform (const RotationBase< Derived, Dim > &r)
Transformoperator= (const Transform &other)
template<typename OtherDerived >
 Transform (const EigenBase< OtherDerived > &other)
 Constructs and initializes a transformation from a Dim^2 or a (Dim+1)^2 matrix.
template<typename OtherDerived >
Transformoperator= (const EigenBase< OtherDerived > &other)
 Set *this from a Dim^2 or (Dim+1)^2 matrix.
template<int OtherOptions>
 Transform (const Transform< Scalar, Dim, Mode, OtherOptions > &other)
template<int OtherMode, int OtherOptions>
 Transform (const Transform< Scalar, Dim, OtherMode, OtherOptions > &other)
template<typename OtherDerived >
 Transform (const ReturnByValue< OtherDerived > &other)
template<typename OtherDerived >
Transformoperator= (const ReturnByValue< OtherDerived > &other)
Scalar operator() (Index row, Index col) const
 shortcut for m_matrix(row,col);
Scalaroperator() (Index row, Index col)
 shortcut for m_matrix(row,col);
const MatrixTypematrix () const
MatrixTypematrix ()
ConstLinearPart linear () const
LinearPart linear ()
ConstAffinePart affine () const
AffinePart affine ()
ConstTranslationPart translation () const
TranslationPart translation ()
template<typename OtherDerived >
EIGEN_STRONG_INLINE const
internal::transform_right_product_impl
< Transform, OtherDerived >
::ResultType 
operator* (const EigenBase< OtherDerived > &other) const
template<typename DiagonalDerived >
const
TransformTimeDiagonalReturnType 
operator* (const DiagonalBase< DiagonalDerived > &b) const
template<typename OtherDerived >
Transformoperator*= (const EigenBase< OtherDerived > &other)
const Transform operator* (const Transform &other) const
 Concatenates two transformations.
template<int OtherMode, int OtherOptions>
const
internal::transform_transform_product_impl
< Transform, Transform< Scalar,
Dim, OtherMode, OtherOptions >
>::ResultType 
operator* (const Transform< Scalar, Dim, OtherMode, OtherOptions > &other) const
 Concatenates two different transformations.
void setIdentity ()
template<typename OtherDerived >
Transformscale (const MatrixBase< OtherDerived > &other)
 Applies on the right the non uniform scale transformation represented by the vector other to *this and returns a reference to *this.
template<typename OtherDerived >
Transformprescale (const MatrixBase< OtherDerived > &other)
 Applies on the left the non uniform scale transformation represented by the vector other to *this and returns a reference to *this.
Transformscale (Scalar s)
 Applies on the right a uniform scale of a factor c to *this and returns a reference to *this.
Transformprescale (Scalar s)
 Applies on the left a uniform scale of a factor c to *this and returns a reference to *this.
template<typename OtherDerived >
Transformtranslate (const MatrixBase< OtherDerived > &other)
 Applies on the right the translation matrix represented by the vector other to *this and returns a reference to *this.
template<typename OtherDerived >
Transformpretranslate (const MatrixBase< OtherDerived > &other)
 Applies on the left the translation matrix represented by the vector other to *this and returns a reference to *this.
template<typename RotationType >
Transformrotate (const RotationType &rotation)
 Applies on the right the rotation represented by the rotation rotation to *this and returns a reference to *this.
template<typename RotationType >
Transformprerotate (const RotationType &rotation)
 Applies on the left the rotation represented by the rotation rotation to *this and returns a reference to *this.
Transformshear (Scalar sx, Scalar sy)
 Applies on the right the shear transformation represented by the vector other to *this and returns a reference to *this.
Transformpreshear (Scalar sx, Scalar sy)
 Applies on the left the shear transformation represented by the vector other to *this and returns a reference to *this.
Transformoperator= (const TranslationType &t)
Transformoperator*= (const TranslationType &t)
Transform operator* (const TranslationType &t) const
Transformoperator= (const UniformScaling< Scalar > &t)
Transformoperator*= (const UniformScaling< Scalar > &s)
Transform operator* (const UniformScaling< Scalar > &s) const
Transformoperator*= (const DiagonalMatrix< Scalar, Dim > &s)
template<typename Derived >
Transformoperator= (const RotationBase< Derived, Dim > &r)
template<typename Derived >
Transformoperator*= (const RotationBase< Derived, Dim > &r)
template<typename Derived >
Transform operator* (const RotationBase< Derived, Dim > &r) const
const LinearMatrixType rotation () const
template<typename RotationMatrixType , typename ScalingMatrixType >
void computeRotationScaling (RotationMatrixType *rotation, ScalingMatrixType *scaling) const
 decomposes the linear part of the transformation as a product rotation x scaling, the scaling being not necessarily positive.
template<typename ScalingMatrixType , typename RotationMatrixType >
void computeScalingRotation (ScalingMatrixType *scaling, RotationMatrixType *rotation) const
 decomposes the linear part of the transformation as a product rotation x scaling, the scaling being not necessarily positive.
template<typename PositionDerived , typename OrientationType , typename ScaleDerived >
TransformfromPositionOrientationScale (const MatrixBase< PositionDerived > &position, const OrientationType &orientation, const MatrixBase< ScaleDerived > &scale)
 Convenient method to set *this from a position, orientation and scale of a 3D object.
Transform inverse (TransformTraits traits=(TransformTraits) Mode) const
const Scalardata () const
Scalardata ()
template<typename NewScalarType >
internal::cast_return_type
< Transform, Transform
< NewScalarType, Dim, Mode,
Options > >::type 
cast () const
template<typename OtherScalarType >
 Transform (const Transform< OtherScalarType, Dim, Mode, Options > &other)
 Copy constructor with scalar type conversion.
bool isApprox (const Transform &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const
void makeAffine ()
 Sets the last row to [0 ...
Block< MatrixType, int(Mode)==int(Projective)?HDim:Dim,
Dim > 
linearExt ()
const Block< MatrixType, int(Mode)==int(Projective)?HDim:Dim,
Dim > 
linearExt () const
Block< MatrixType, int(Mode)==int(Projective)?HDim:Dim, 1 > translationExt ()
const Block< MatrixType, int(Mode)==int(Projective)?HDim:Dim, 1 > translationExt () const

Static Public Member Functions

static const Transform Identity ()
 Returns an identity transformation.

Protected Attributes

MatrixType m_matrix

Friends

template<typename OtherDerived >
const
internal::transform_left_product_impl
< OtherDerived, Mode, Options,
_Dim, _Dim+1 >::ResultType 
operator* (const EigenBase< OtherDerived > &a, const Transform &b)
template<typename DiagonalDerived >
TransformTimeDiagonalReturnType operator* (const DiagonalBase< DiagonalDerived > &a, const Transform &b)

Member Typedef Documentation

typedef internal::conditional<int(Mode)==int(AffineCompact), MatrixType&, Block<MatrixType,Dim,HDim> >::type Eigen::Transform::AffinePart

type of read/write reference to the affine part of the transformation

Definition at line 217 of file Geometry.

typedef internal::conditional<int(Mode)==int(AffineCompact), const MatrixType&, const Block<const MatrixType,Dim,HDim> >::type Eigen::Transform::ConstAffinePart

type of read reference to the affine part of the transformation

Definition at line 221 of file Geometry.

type of read reference to the linear part of the transformation

Definition at line 213 of file Geometry.

constified MatrixType

Definition at line 207 of file Geometry.

type of a read reference to the translation part of the rotation

Definition at line 227 of file Geometry.

Definition at line 203 of file Geometry.

type of the matrix used to represent the linear part of the transformation

Definition at line 209 of file Geometry.

type of read/write reference to the linear part of the transformation

Definition at line 211 of file Geometry.

type of the matrix used to represent the transformation

Definition at line 205 of file Geometry.

typedef _Scalar Eigen::Transform::Scalar

the scalar type of the coefficients

Definition at line 200 of file Geometry.

Definition at line 277 of file Geometry.

typedef Transform<Scalar,Dim,TransformTimeDiagonalMode> Eigen::Transform::TransformTimeDiagonalReturnType

The return type of the product between a diagonal matrix and a transform.

Definition at line 234 of file Geometry.

type of a read/write reference to the translation part of the rotation

Definition at line 225 of file Geometry.

corresponding translation type

Definition at line 229 of file Geometry.

type of a vector

Definition at line 223 of file Geometry.


Member Enumeration Documentation

anonymous enum
Enumerator:
TransformTimeDiagonalMode 

Definition at line 232 of file Geometry.


Constructor & Destructor Documentation

Eigen::Transform::Transform ( ) [inline]

Default constructor without initialization of the meaningful coefficients.

If Mode==Affine, then the last row is set to [0 ... 0 1]

Definition at line 244 of file Geometry.

Eigen::Transform::Transform ( const Transform other) [inline]

Definition at line 251 of file Geometry.

Eigen::Transform::Transform ( const TranslationType t) [inline, explicit]

Definition at line 257 of file Geometry.

Eigen::Transform::Transform ( const UniformScaling< Scalar > &  s) [inline, explicit]

Definition at line 262 of file Geometry.

template<typename Derived >
Eigen::Transform::Transform ( const RotationBase< Derived, Dim > &  r) [inline, explicit]

Definition at line 268 of file Geometry.

template<typename OtherDerived >
Eigen::Transform::Transform ( const EigenBase< OtherDerived > &  other) [inline, explicit]

Constructs and initializes a transformation from a Dim^2 or a (Dim+1)^2 matrix.

Definition at line 281 of file Geometry.

template<int OtherOptions>
Eigen::Transform::Transform ( const Transform< Scalar, Dim, Mode, OtherOptions > &  other) [inline]

Definition at line 296 of file Geometry.

template<int OtherMode, int OtherOptions>
Eigen::Transform::Transform ( const Transform< Scalar, Dim, OtherMode, OtherOptions > &  other) [inline]

Definition at line 304 of file Geometry.

template<typename OtherDerived >
Eigen::Transform::Transform ( const ReturnByValue< OtherDerived > &  other) [inline]

Definition at line 345 of file Geometry.

template<typename OtherScalarType >
Eigen::Transform::Transform ( const Transform< OtherScalarType, Dim, Mode, Options > &  other) [inline, explicit]

Copy constructor with scalar type conversion.

Definition at line 555 of file Geometry.


Member Function Documentation

ConstAffinePart Eigen::Transform::affine ( ) const [inline]
Returns:
a read-only expression of the Dim x HDim affine part of the transformation

Definition at line 385 of file Geometry.

AffinePart Eigen::Transform::affine ( ) [inline]
Returns:
a writable expression of the Dim x HDim affine part of the transformation

Definition at line 387 of file Geometry.

template<typename NewScalarType >
internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >::type Eigen::Transform::cast ( ) const [inline]
Returns:
*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 550 of file Geometry.

template<typename RotationMatrixType , typename ScalingMatrixType >
void Eigen::Transform::computeRotationScaling ( RotationMatrixType *  rotation,
ScalingMatrixType *  scaling 
) const

decomposes the linear part of the transformation as a product rotation x scaling, the scaling being not necessarily positive.

If either pointer is zero, the corresponding computation is skipped.

See also:
computeScalingRotation(), rotation(), class SVD

Definition at line 1005 of file Geometry.

template<typename ScalingMatrixType , typename RotationMatrixType >
void Eigen::Transform::computeScalingRotation ( ScalingMatrixType *  scaling,
RotationMatrixType *  rotation 
) const

decomposes the linear part of the transformation as a product rotation x scaling, the scaling being not necessarily positive.

If either pointer is zero, the corresponding computation is skipped.

See also:
computeRotationScaling(), rotation(), class SVD

Definition at line 1034 of file Geometry.

const Scalar* Eigen::Transform::data ( ) const [inline]
Returns:
a const pointer to the column major internal matrix

Definition at line 540 of file Geometry.

Scalar* Eigen::Transform::data ( ) [inline]
Returns:
a non-const pointer to the column major internal matrix

Definition at line 542 of file Geometry.

Eigen::Transform::EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE ( _Scalar  ,
_Dim  = =Dynamic ? Dynamic : (_Dim+1)*(_Dim+1) 
) [inline]

< space dimension in which the transformation holds

< size of a respective homogeneous vector

Definition at line 193 of file Geometry.

template<typename PositionDerived , typename OrientationType , typename ScaleDerived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::fromPositionOrientationScale ( const MatrixBase< PositionDerived > &  position,
const OrientationType &  orientation,
const MatrixBase< ScaleDerived > &  scale 
)

Convenient method to set *this from a position, orientation and scale of a 3D object.

Definition at line 1056 of file Geometry.

static const Transform Eigen::Transform::Identity ( ) [inline, static]

Returns an identity transformation.

Todo:
In the future this function should be returning a Transform expression.

Definition at line 481 of file Geometry.

Transform< Scalar, Dim, Mode, Options > Eigen::Transform::inverse ( TransformTraits  hint = (TransformTraits)Mode) const [inline]
Returns:
the inverse transformation according to some given knowledge on *this.
Parameters:
hintallows to optimize the inversion process when the transformation is known to be not a general transformation (optional). The possible values are:
  • Projective if the transformation is not necessarily affine, i.e., if the last row is not guaranteed to be [0 ... 0 1]
  • Affine if the last row can be assumed to be [0 ... 0 1]
  • Isometry if the transformation is only a concatenations of translations and rotations. The default is the template class parameter Mode.
Warning:
unless traits is always set to NoShear or NoScaling, this function requires the generic inverse method of MatrixBase defined in the LU module. If you forget to include this module, then you will get hard to debug linking errors.
See also:
MatrixBase::inverse()

Definition at line 1110 of file Geometry.

bool Eigen::Transform::isApprox ( const Transform other,
typename NumTraits< Scalar >::Real  prec = NumTraits<Scalar>::dummy_precision() 
) const [inline]
Returns:
true if *this is approximately equal to other, within the precision determined by prec.
See also:
MatrixBase::isApprox()

Definition at line 565 of file Geometry.

ConstLinearPart Eigen::Transform::linear ( ) const [inline]
Returns:
a read-only expression of the linear part of the transformation

Definition at line 380 of file Geometry.

LinearPart Eigen::Transform::linear ( ) [inline]
Returns:
a writable expression of the linear part of the transformation

Definition at line 382 of file Geometry.

Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> Eigen::Transform::linearExt ( ) [inline]

Definition at line 583 of file Geometry.

const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> Eigen::Transform::linearExt ( ) const [inline]

Definition at line 589 of file Geometry.

void Eigen::Transform::makeAffine ( ) [inline]

Sets the last row to [0 ...

0 1]

Definition at line 570 of file Geometry.

const MatrixType& Eigen::Transform::matrix ( ) const [inline]
Returns:
a read-only expression of the transformation matrix

Definition at line 375 of file Geometry.

MatrixType& Eigen::Transform::matrix ( ) [inline]
Returns:
a writable expression of the transformation matrix

Definition at line 377 of file Geometry.

Scalar Eigen::Transform::operator() ( Index  row,
Index  col 
) const [inline]

shortcut for m_matrix(row,col);

See also:
MatrixBase::operator(Index,Index) const

Definition at line 369 of file Geometry.

Scalar& Eigen::Transform::operator() ( Index  row,
Index  col 
) [inline]

shortcut for m_matrix(row,col);

See also:
MatrixBase::operator(Index,Index)

Definition at line 372 of file Geometry.

template<typename OtherDerived >
EIGEN_STRONG_INLINE const internal::transform_right_product_impl<Transform, OtherDerived>::ResultType Eigen::Transform::operator* ( const EigenBase< OtherDerived > &  other) const [inline]
Returns:
an expression of the product between the transform *this and a matrix expression other

The right hand side other might be either:

  • a vector of size Dim,
  • an homogeneous vector of size Dim+1,
  • a set of vectors of size Dim x Dynamic,
  • a set of homogeneous vectors of size Dim+1 x Dynamic,
  • a linear transformation matrix of size Dim x Dim,
  • an affine transformation matrix of size Dim x Dim+1,
  • a transformation matrix of size Dim+1 x Dim+1.

Definition at line 408 of file Geometry.

template<typename DiagonalDerived >
const TransformTimeDiagonalReturnType Eigen::Transform::operator* ( const DiagonalBase< DiagonalDerived > &  b) const [inline]
Returns:
The product expression of a transform a times a diagonal matrix b

The rhs diagonal matrix is interpreted as an affine scaling transformation. The product results in a Transform of the same type (mode) as the lhs only if the lhs mode is no isometry. In that case, the returned transform is an affinity.

Definition at line 431 of file Geometry.

const Transform Eigen::Transform::operator* ( const Transform other) const [inline]

Concatenates two transformations.

Definition at line 460 of file Geometry.

template<int OtherMode, int OtherOptions>
const internal::transform_transform_product_impl< Transform,Transform<Scalar,Dim,OtherMode,OtherOptions> >::ResultType Eigen::Transform::operator* ( const Transform< Scalar, Dim, OtherMode, OtherOptions > &  other) const [inline]

Concatenates two different transformations.

Definition at line 469 of file Geometry.

Transform< Scalar, Dim, Mode, Options > Eigen::Transform::operator* ( const TranslationType t) const [inline]

Definition at line 928 of file Geometry.

Transform< Scalar, Dim, Mode, Options > Eigen::Transform::operator* ( const UniformScaling< Scalar > &  s) const [inline]

Definition at line 945 of file Geometry.

template<typename Derived >
Transform< Scalar, Dim, Mode, Options > Eigen::Transform::operator* ( const RotationBase< Derived, Dim > &  r) const [inline]

Definition at line 964 of file Geometry.

template<typename OtherDerived >
Transform& Eigen::Transform::operator*= ( const EigenBase< OtherDerived > &  other) [inline]

Definition at line 457 of file Geometry.

Transform& Eigen::Transform::operator*= ( const TranslationType t) [inline]

Definition at line 511 of file Geometry.

Transform& Eigen::Transform::operator*= ( const UniformScaling< Scalar > &  s) [inline]

Definition at line 515 of file Geometry.

Transform& Eigen::Transform::operator*= ( const DiagonalMatrix< Scalar, Dim > &  s) [inline]

Definition at line 518 of file Geometry.

template<typename Derived >
Transform& Eigen::Transform::operator*= ( const RotationBase< Derived, Dim > &  r) [inline]

Definition at line 523 of file Geometry.

Transform& Eigen::Transform::operator= ( const Transform other) [inline]

Definition at line 274 of file Geometry.

template<typename OtherDerived >
Transform& Eigen::Transform::operator= ( const EigenBase< OtherDerived > &  other) [inline]

Set *this from a Dim^2 or (Dim+1)^2 matrix.

Definition at line 289 of file Geometry.

template<typename OtherDerived >
Transform& Eigen::Transform::operator= ( const ReturnByValue< OtherDerived > &  other) [inline]

Definition at line 352 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::operator= ( const TranslationType t) [inline]

Definition at line 919 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::operator= ( const UniformScaling< Scalar > &  t) [inline]

Definition at line 936 of file Geometry.

template<typename Derived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::operator= ( const RotationBase< Derived, Dim > &  r) [inline]

Definition at line 954 of file Geometry.

template<typename RotationType >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::prerotate ( const RotationType &  rotation) [inline]

Applies on the left the rotation represented by the rotation rotation to *this and returns a reference to *this.

See rotate() for further details.

See also:
rotate()

Definition at line 876 of file Geometry.

template<typename OtherDerived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::prescale ( const MatrixBase< OtherDerived > &  other) [inline]

Applies on the left the non uniform scale transformation represented by the vector other to *this and returns a reference to *this.

See also:
scale()

Definition at line 789 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::prescale ( Scalar  s) [inline]

Applies on the left a uniform scale of a factor c to *this and returns a reference to *this.

See also:
scale(Scalar)

Definition at line 802 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::preshear ( Scalar  sx,
Scalar  sy 
)

Applies on the left the shear transformation represented by the vector other to *this and returns a reference to *this.

Warning:
2D only.
See also:
shear()

Definition at line 906 of file Geometry.

template<typename OtherDerived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::pretranslate ( const MatrixBase< OtherDerived > &  other) [inline]

Applies on the left the translation matrix represented by the vector other to *this and returns a reference to *this.

See also:
translate()

Definition at line 830 of file Geometry.

template<typename RotationType >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::rotate ( const RotationType &  rotation) [inline]

Applies on the right the rotation represented by the rotation rotation to *this and returns a reference to *this.

The template parameter RotationType is the type of the rotation which must be known by internal::toRotationMatrix<>.

Natively supported types includes:

This mechanism is easily extendable to support user types such as Euler angles, or a pair of Quaternion for 4D rotations.

See also:
rotate(Scalar), class Quaternion, class AngleAxis, prerotate(RotationType)

Definition at line 860 of file Geometry.

const Transform< Scalar, Dim, Mode, Options >::LinearMatrixType Eigen::Transform::rotation ( ) const
Returns:
the rotation part of the transformation
See also:
computeRotationScaling(), computeScalingRotation(), class SVD

Definition at line 984 of file Geometry.

template<typename OtherDerived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::scale ( const MatrixBase< OtherDerived > &  other) [inline]

Applies on the right the non uniform scale transformation represented by the vector other to *this and returns a reference to *this.

See also:
prescale()

Definition at line 762 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::scale ( Scalar  s) [inline]

Applies on the right a uniform scale of a factor c to *this and returns a reference to *this.

See also:
prescale(Scalar)

Definition at line 775 of file Geometry.

void Eigen::Transform::setIdentity ( ) [inline]
See also:
MatrixBase::setIdentity()

Definition at line 475 of file Geometry.

Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::shear ( Scalar  sx,
Scalar  sy 
)

Applies on the right the shear transformation represented by the vector other to *this and returns a reference to *this.

Warning:
2D only.
See also:
preshear()

Definition at line 890 of file Geometry.

template<typename OtherDerived >
Transform< Scalar, Dim, Mode, Options > & Eigen::Transform::translate ( const MatrixBase< OtherDerived > &  other) [inline]

Applies on the right the translation matrix represented by the vector other to *this and returns a reference to *this.

See also:
pretranslate()

Definition at line 816 of file Geometry.

ConstTranslationPart Eigen::Transform::translation ( ) const [inline]
Returns:
a read-only expression of the translation vector of the transformation

Definition at line 390 of file Geometry.

TranslationPart Eigen::Transform::translation ( ) [inline]
Returns:
a writable expression of the translation vector of the transformation

Definition at line 392 of file Geometry.

Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> Eigen::Transform::translationExt ( ) [inline]

Definition at line 596 of file Geometry.

const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> Eigen::Transform::translationExt ( ) const [inline]

Definition at line 602 of file Geometry.


Friends And Related Function Documentation

template<typename OtherDerived >
const internal::transform_left_product_impl<OtherDerived,Mode,Options,_Dim,_Dim+1>::ResultType operator* ( const EigenBase< OtherDerived > &  a,
const Transform b 
) [friend]
Returns:
the product expression of a transformation matrix a times a transform b

The left hand side other might be either:

  • a linear transformation matrix of size Dim x Dim,
  • an affine transformation matrix of size Dim x Dim+1,
  • a general transformation matrix of size Dim+1 x Dim+1.

Definition at line 420 of file Geometry.

template<typename DiagonalDerived >
TransformTimeDiagonalReturnType operator* ( const DiagonalBase< DiagonalDerived > &  a,
const Transform b 
) [friend]
Returns:
The product expression of a diagonal matrix a times a transform b

The lhs diagonal matrix is interpreted as an affine scaling transformation. The product results in a Transform of the same type (mode) as the lhs only if the lhs mode is no isometry. In that case, the returned transform is an affinity.

Definition at line 446 of file Geometry.


Member Data Documentation

Definition at line 238 of file Geometry.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011