Shapeworks Studio
2.1
Shape analysis software suite
|
Represents an homogeneous transformation in a N dimensional space. More...
#include <Transform.h>
Classes | |
struct | construct_from_matrix |
struct | construct_from_matrix< OtherDerived, true > |
Public Types | |
enum | { TransformTimeDiagonalMode = ((Mode==int(Isometry))?Affine:int(Mode)) } |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, HDim, HDim > | MatrixType |
typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
typedef Block< MatrixType, Dim, Dim > | LinearPart |
typedef const Block< const MatrixType, Dim, Dim > | ConstLinearPart |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
typedef Block< MatrixType, Dim, 1 > | TranslationPart |
typedef const Block< const MatrixType, Dim, 1 > | ConstTranslationPart |
typedef Translation< Scalar, Dim > | TranslationType |
typedef Scaling< Scalar, Dim > | ScalingType |
typedef _Scalar | Scalar |
typedef DenseIndex | Index |
typedef internal::make_proper_matrix_type< Scalar, Rows, HDim, Options >::type | MatrixType |
typedef const MatrixType | ConstMatrixType |
typedef Matrix< Scalar, Dim, Dim, Options > | LinearMatrixType |
typedef Block< MatrixType, Dim, Dim, int(Mode)==(AffineCompact)> | LinearPart |
typedef const Block< ConstMatrixType, Dim, Dim, int(Mode)==(AffineCompact)> | ConstLinearPart |
typedef internal::conditional< int(Mode)==int(AffineCompact), MatrixType &, Block< MatrixType, Dim, HDim > >::type | AffinePart |
typedef internal::conditional< int(Mode)==int(AffineCompact), const MatrixType &, const Block< const MatrixType, Dim, HDim > >::type | ConstAffinePart |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
typedef Block< MatrixType, Dim, 1, int(Mode)==(AffineCompact)> | TranslationPart |
typedef const Block< ConstMatrixType, Dim, 1, int(Mode)==(AffineCompact)> | ConstTranslationPart |
typedef Translation< Scalar, Dim > | TranslationType |
typedef Transform< Scalar, Dim, TransformTimeDiagonalMode > | TransformTimeDiagonalReturnType |
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 () | |
Transform (const Transform &other) | |
Transform (const TranslationType &t) | |
Transform (const ScalingType &s) | |
template<typename Derived > | |
Transform (const RotationBase< Derived, Dim > &r) | |
Transform & | operator= (const Transform &other) |
template<typename OtherDerived > | |
Transform (const MatrixBase< OtherDerived > &other) | |
template<typename OtherDerived > | |
Transform & | operator= (const MatrixBase< OtherDerived > &other) |
Scalar | operator() (int row, int col) const |
Scalar & | operator() (int row, int col) |
const MatrixType & | matrix () const |
MatrixType & | matrix () |
ConstLinearPart | linear () const |
LinearPart | linear () |
ConstTranslationPart | translation () const |
TranslationPart | translation () |
template<typename OtherDerived > | |
const ei_transform_product_impl< OtherDerived, _Dim, _Dim+1 >::ResultType | operator* (const MatrixBase< OtherDerived > &other) const |
const Transform | operator* (const Transform &other) const |
void | setIdentity () |
template<typename OtherDerived > | |
Transform & | scale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform & | prescale (const MatrixBase< OtherDerived > &other) |
Transform & | scale (Scalar s) |
Transform & | prescale (Scalar s) |
template<typename OtherDerived > | |
Transform & | translate (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform & | pretranslate (const MatrixBase< OtherDerived > &other) |
template<typename RotationType > | |
Transform & | rotate (const RotationType &rotation) |
template<typename RotationType > | |
Transform & | prerotate (const RotationType &rotation) |
Transform & | shear (Scalar sx, Scalar sy) |
Transform & | preshear (Scalar sx, Scalar sy) |
Transform & | operator= (const TranslationType &t) |
Transform & | operator*= (const TranslationType &t) |
Transform | operator* (const TranslationType &t) const |
Transform & | operator= (const ScalingType &t) |
Transform & | operator*= (const ScalingType &s) |
Transform | operator* (const ScalingType &s) const |
template<typename Derived > | |
Transform & | operator= (const RotationBase< Derived, Dim > &r) |
template<typename Derived > | |
Transform & | operator*= (const RotationBase< Derived, Dim > &r) |
template<typename Derived > | |
Transform | operator* (const RotationBase< Derived, Dim > &r) const |
LinearMatrixType | rotation () const |
template<typename RotationMatrixType , typename ScalingMatrixType > | |
void | computeRotationScaling (RotationMatrixType *rotation, ScalingMatrixType *scaling) const |
template<typename ScalingMatrixType , typename RotationMatrixType > | |
void | computeScalingRotation (ScalingMatrixType *scaling, RotationMatrixType *rotation) const |
template<typename PositionDerived , typename OrientationType , typename ScaleDerived > | |
Transform & | fromPositionOrientationScale (const MatrixBase< PositionDerived > &position, const OrientationType &orientation, const MatrixBase< ScaleDerived > &scale) |
const MatrixType | inverse (TransformTraits traits=Affine) const |
const Scalar * | data () const |
Scalar * | data () |
template<typename NewScalarType > | |
internal::cast_return_type< Transform, Transform< NewScalarType, Dim > >::type | cast () const |
template<typename OtherScalarType > | |
Transform (const Transform< OtherScalarType, Dim > &other) | |
bool | isApprox (const Transform &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE (_Scalar, _Dim==Dynamic?Dynamic:(_Dim+1)*(_Dim+1)) enum | |
Transform () | |
Transform (const Transform &other) | |
Transform (const TranslationType &t) | |
Transform (const UniformScaling< Scalar > &s) | |
template<typename Derived > | |
Transform (const RotationBase< Derived, Dim > &r) | |
Transform & | operator= (const Transform &other) |
template<typename OtherDerived > | |
Transform (const EigenBase< OtherDerived > &other) | |
template<typename OtherDerived > | |
Transform & | operator= (const EigenBase< OtherDerived > &other) |
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 > | |
Transform & | operator= (const ReturnByValue< OtherDerived > &other) |
Scalar | operator() (Index row, Index col) const |
Scalar & | operator() (Index row, Index col) |
const MatrixType & | matrix () const |
MatrixType & | matrix () |
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 > | |
Transform & | operator*= (const EigenBase< OtherDerived > &other) |
const Transform | operator* (const Transform &other) const |
template<int OtherMode, int OtherOptions> | |
internal::transform_transform_product_impl< Transform, Transform< Scalar, Dim, OtherMode, OtherOptions > >::ResultType | operator* (const Transform< Scalar, Dim, OtherMode, OtherOptions > &other) const |
void | setIdentity () |
template<typename OtherDerived > | |
Transform & | scale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform & | prescale (const MatrixBase< OtherDerived > &other) |
Transform & | scale (const Scalar &s) |
Transform & | prescale (const Scalar &s) |
template<typename OtherDerived > | |
Transform & | translate (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform & | pretranslate (const MatrixBase< OtherDerived > &other) |
template<typename RotationType > | |
Transform & | rotate (const RotationType &rotation) |
template<typename RotationType > | |
Transform & | prerotate (const RotationType &rotation) |
Transform & | shear (const Scalar &sx, const Scalar &sy) |
Transform & | preshear (const Scalar &sx, const Scalar &sy) |
Transform & | operator= (const TranslationType &t) |
Transform & | operator*= (const TranslationType &t) |
Transform | operator* (const TranslationType &t) const |
Transform & | operator= (const UniformScaling< Scalar > &t) |
Transform & | operator*= (const UniformScaling< Scalar > &s) |
Transform< Scalar, Dim,(int(Mode)==int(Isometry)?Affine:Isometry)> | operator* (const UniformScaling< Scalar > &s) const |
Transform & | operator*= (const DiagonalMatrix< Scalar, Dim > &s) |
template<typename Derived > | |
Transform & | operator= (const RotationBase< Derived, Dim > &r) |
template<typename Derived > | |
Transform & | operator*= (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 |
template<typename ScalingMatrixType , typename RotationMatrixType > | |
void | computeScalingRotation (ScalingMatrixType *scaling, RotationMatrixType *rotation) const |
template<typename PositionDerived , typename OrientationType , typename ScaleDerived > | |
Transform & | fromPositionOrientationScale (const MatrixBase< PositionDerived > &position, const OrientationType &orientation, const MatrixBase< ScaleDerived > &scale) |
Transform | inverse (TransformTraits traits=(TransformTraits) Mode) const |
const Scalar * | data () const |
Scalar * | data () |
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) | |
bool | isApprox (const Transform &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
void | makeAffine () |
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 |
template<typename OtherDerived > | |
Transform< Scalar, Dim > & | scale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim > & | prescale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim > & | translate (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim > & | pretranslate (const MatrixBase< OtherDerived > &other) |
template<typename RotationType > | |
Transform< Scalar, Dim > & | rotate (const RotationType &rotation) |
template<typename RotationType > | |
Transform< Scalar, Dim > & | prerotate (const RotationType &rotation) |
template<typename Derived > | |
Transform< Scalar, Dim > & | operator= (const RotationBase< Derived, Dim > &r) |
template<typename Derived> | |
Transform< Scalar, Dim > | operator* (const RotationBase< Derived, Dim > &r) const |
template<typename PositionDerived , typename OrientationType , typename ScaleDerived > | |
Transform< Scalar, Dim > & | fromPositionOrientationScale (const MatrixBase< PositionDerived > &position, const OrientationType &orientation, const MatrixBase< ScaleDerived > &scale) |
template<typename OtherDerived > | |
Transform< Scalar, Dim, Mode, Options > & | scale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim, Mode, Options > & | prescale (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim, Mode, Options > & | translate (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Transform< Scalar, Dim, Mode, Options > & | pretranslate (const MatrixBase< OtherDerived > &other) |
template<typename RotationType > | |
Transform< Scalar, Dim, Mode, Options > & | rotate (const RotationType &rotation) |
template<typename RotationType > | |
Transform< Scalar, Dim, Mode, Options > & | prerotate (const RotationType &rotation) |
template<typename Derived > | |
Transform< Scalar, Dim, Mode, Options > & | operator= (const RotationBase< Derived, Dim > &r) |
template<typename Derived> | |
Transform< Scalar, Dim, Mode, Options > | operator* (const RotationBase< Derived, Dim > &r) const |
template<typename PositionDerived , typename OrientationType , typename ScaleDerived > | |
Transform< Scalar, Dim, Mode, Options > & | fromPositionOrientationScale (const MatrixBase< PositionDerived > &position, const OrientationType &orientation, const MatrixBase< ScaleDerived > &scale) |
Static Public Member Functions | |
static const MatrixType::IdentityReturnType | Identity () |
static const Transform | Identity () |
Returns an identity transformation. More... | |
Static Protected Member Functions | |
static EIGEN_STRONG_INLINE void | check_template_params () |
Protected Attributes | |
MatrixType | m_matrix |
Friends | |
template<typename OtherDerived > | |
const ProductReturnType< OtherDerived, MatrixType >::Type | operator* (const MatrixBase< OtherDerived > &a, const Transform &b) |
Transform | operator* (const LinearMatrixType &mat, const Transform &t) |
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) |
Represents an homogeneous transformation in a N dimensional space.
_Scalar | the scalar type, i.e., the type of the coefficients |
_Dim | the dimension of the space |
The homography is internally represented and stored as a (Dim+1)^2 matrix which is available through the matrix() method.
Conversion methods from/to Qt's QMatrix and QTransform are available if the preprocessor token EIGEN_QT_SUPPORT is defined.
_Scalar | the scalar type, i.e., the type of the coefficients |
_Dim | the dimension of the space |
_Mode | the type of the transformation. Can be:
|
_Options | has 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:
Therefore, an affine transformation matrix M is shaped like this:
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):
Rotation R (Dim)x(Dim):
Linear Matrix L (Dim)x(Dim):
Affine Matrix A (Dim)x(Dim+1):
Column vector v (Dim)x(1):
Set of column vectors V1...Vn (Dim)x(n):
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:
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
.
Definition at line 43 of file Transform.h.
typedef internal::conditional<int(Mode)==int(AffineCompact), MatrixType&, Block<MatrixType,Dim,HDim> >::type Eigen::Transform< _Scalar, _Dim >::AffinePart |
type of read/write reference to the affine part of the transformation
Definition at line 203 of file Transform.h.
typedef internal::conditional<int(Mode)==int(AffineCompact), const MatrixType&, const Block<const MatrixType,Dim,HDim> >::type Eigen::Transform< _Scalar, _Dim >::ConstAffinePart |
type of read reference to the affine part of the transformation
Definition at line 207 of file Transform.h.
typedef const Block<const MatrixType,Dim,Dim> Eigen::Transform< _Scalar, _Dim >::ConstLinearPart |
type of read/write reference to the linear part of the transformation
Definition at line 60 of file Transform.h.
typedef const Block<ConstMatrixType,Dim,Dim,int(Mode)==(AffineCompact)> Eigen::Transform< _Scalar, _Dim >::ConstLinearPart |
type of read reference to the linear part of the transformation
Definition at line 199 of file Transform.h.
typedef const MatrixType Eigen::Transform< _Scalar, _Dim >::ConstMatrixType |
constified MatrixType
Definition at line 193 of file Transform.h.
typedef const Block<const MatrixType,Dim,1> Eigen::Transform< _Scalar, _Dim >::ConstTranslationPart |
type of a read/write reference to the translation part of the rotation
Definition at line 66 of file Transform.h.
typedef const Block<ConstMatrixType,Dim,1,int(Mode)==(AffineCompact)> Eigen::Transform< _Scalar, _Dim >::ConstTranslationPart |
type of a read reference to the translation part of the rotation
Definition at line 213 of file Transform.h.
typedef Matrix<Scalar,Dim,Dim> Eigen::Transform< _Scalar, _Dim >::LinearMatrixType |
type of the matrix used to represent the linear part of the transformation
Definition at line 56 of file Transform.h.
typedef Matrix<Scalar,Dim,Dim,Options> Eigen::Transform< _Scalar, _Dim >::LinearMatrixType |
type of the matrix used to represent the linear part of the transformation
Definition at line 195 of file Transform.h.
typedef Block<MatrixType,Dim,Dim> Eigen::Transform< _Scalar, _Dim >::LinearPart |
type of read/write reference to the linear part of the transformation
Definition at line 58 of file Transform.h.
typedef Block<MatrixType,Dim,Dim,int(Mode)==(AffineCompact)> Eigen::Transform< _Scalar, _Dim >::LinearPart |
type of read/write reference to the linear part of the transformation
Definition at line 197 of file Transform.h.
typedef Matrix<Scalar,HDim,HDim> Eigen::Transform< _Scalar, _Dim >::MatrixType |
type of the matrix used to represent the transformation
Definition at line 54 of file Transform.h.
typedef internal::make_proper_matrix_type<Scalar,Rows,HDim,Options>::type Eigen::Transform< _Scalar, _Dim >::MatrixType |
type of the matrix used to represent the transformation
Definition at line 191 of file Transform.h.
typedef _Scalar Eigen::Transform< _Scalar, _Dim >::Scalar |
the scalar type of the coefficients
Definition at line 50 of file Transform.h.
typedef _Scalar Eigen::Transform< _Scalar, _Dim >::Scalar |
the scalar type of the coefficients
Definition at line 186 of file Transform.h.
typedef Scaling<Scalar,Dim> Eigen::Transform< _Scalar, _Dim >::ScalingType |
corresponding scaling transformation type
Definition at line 70 of file Transform.h.
typedef Transform<Scalar,Dim,TransformTimeDiagonalMode> Eigen::Transform< _Scalar, _Dim >::TransformTimeDiagonalReturnType |
The return type of the product between a diagonal matrix and a transform
Definition at line 220 of file Transform.h.
typedef Block<MatrixType,Dim,1> Eigen::Transform< _Scalar, _Dim >::TranslationPart |
type of a read/write reference to the translation part of the rotation
Definition at line 64 of file Transform.h.
typedef Block<MatrixType,Dim,1,int(Mode)==(AffineCompact)> Eigen::Transform< _Scalar, _Dim >::TranslationPart |
type of a read/write reference to the translation part of the rotation
Definition at line 211 of file Transform.h.
typedef Translation<Scalar,Dim> Eigen::Transform< _Scalar, _Dim >::TranslationType |
corresponding translation type
Definition at line 68 of file Transform.h.
typedef Translation<Scalar,Dim> Eigen::Transform< _Scalar, _Dim >::TranslationType |
corresponding translation type
Definition at line 215 of file Transform.h.
typedef Matrix<Scalar,Dim,1> Eigen::Transform< _Scalar, _Dim >::VectorType |
type of a vector
Definition at line 62 of file Transform.h.
typedef Matrix<Scalar,Dim,1> Eigen::Transform< _Scalar, _Dim >::VectorType |
type of a vector
Definition at line 209 of file Transform.h.
|
inline |
Default constructor without initialization of the coefficients.
Definition at line 79 of file Transform.h.
|
inlineexplicit |
Constructs and initializes a transformation from a Dim^2 or a (Dim+1)^2 matrix.
Definition at line 116 of file Transform.h.
|
inlineexplicit |
Copy constructor with scalar type conversion
Definition at line 263 of file Transform.h.
|
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 230 of file Transform.h.
|
inlineexplicit |
Constructs and initializes a transformation from a Dim^2 or a (Dim+1)^2 matrix.
Definition at line 267 of file Transform.h.
|
inlineexplicit |
Copy constructor with scalar type conversion
Definition at line 577 of file Transform.h.
|
inline |
Definition at line 377 of file Transform.h.
|
inline |
Definition at line 379 of file Transform.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 258 of file Transform.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 572 of file Transform.h.
void 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.
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.
Definition at line 619 of file Transform.h.
void 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.
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.
Definition at line 650 of file Transform.h.
|
inline |
Definition at line 248 of file Transform.h.
|
inline |
Definition at line 250 of file Transform.h.
|
inline |
Definition at line 562 of file Transform.h.
|
inline |
Definition at line 564 of file Transform.h.
|
inline |
< space dimension in which the transformation holds
< size of a respective homogeneous vector
Definition at line 46 of file Transform.h.
|
inline |
< space dimension in which the transformation holds
< size of a respective homogeneous vector
Definition at line 179 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::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 674 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::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 1070 of file Transform.h.
|
inlinestatic |
|
inline |
*this
.traits | allows to optimize the inversion process when the transformion is known to be not a general transformation. The possible values are:
|
*this
.hint | allows to optimize the inversion process when the transformation is known to be not a general transformation (optional). The possible values are:
|
Definition at line 706 of file Transform.h.
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 270 of file Transform.h.
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 587 of file Transform.h.
|
inline |
Definition at line 148 of file Transform.h.
|
inline |
Definition at line 150 of file Transform.h.
|
inline |
Definition at line 372 of file Transform.h.
|
inline |
Definition at line 374 of file Transform.h.
|
inline |
Sets the last row to [0 ... 0 1]
Definition at line 592 of file Transform.h.
|
inline |
Definition at line 143 of file Transform.h.
|
inline |
Definition at line 145 of file Transform.h.
|
inline |
Definition at line 367 of file Transform.h.
|
inline |
Definition at line 369 of file Transform.h.
|
inline |
shortcut for m_matrix(row,col);
Definition at line 137 of file Transform.h.
|
inline |
shortcut for m_matrix(row,col);
Definition at line 140 of file Transform.h.
|
inline |
shortcut for m_matrix(row,col);
Definition at line 361 of file Transform.h.
|
inline |
shortcut for m_matrix(row,col);
Definition at line 364 of file Transform.h.
|
inline |
*this
and a matrix expression other The right hand side other might be either:
Definition at line 167 of file Transform.h.
|
inline |
|
inline |
*this
and a matrix expression other The right hand side other might be either:
Definition at line 400 of file Transform.h.
|
inline |
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 423 of file Transform.h.
|
inline |
Concatenates two transformations
Definition at line 452 of file Transform.h.
|
inline |
Concatenates two different transformations
Definition at line 485 of file Transform.h.
|
inline |
Set *this
from a (Dim+1)^2 matrix.
Definition at line 123 of file Transform.h.
|
inline |
Set *this
from a Dim^2 or (Dim+1)^2 matrix.
Definition at line 278 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::prerotate | ( | const RotationType & | rotation | ) |
Applies on the left the rotation represented by the rotation rotation to *this
and returns a reference to *this
.
See rotate() for further details.
Definition at line 490 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::prerotate | ( | const RotationType & | rotation | ) |
Applies on the left the rotation represented by the rotation rotation to *this
and returns a reference to *this
.
See rotate() for further details.
Definition at line 898 of file Transform.h.
|
inline |
Applies on the left a uniform scale of a factor c to *this
and returns a reference to *this
.
Definition at line 420 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::prescale | ( | 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
.
Definition at line 408 of file Transform.h.
|
inline |
Applies on the left a uniform scale of a factor c to *this
and returns a reference to *this
.
Definition at line 824 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::prescale | ( | 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
.
Definition at line 811 of file Transform.h.
Transform< Scalar, Dim > & 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
.
Definition at line 519 of file Transform.h.
Transform< Scalar, Dim, Mode, Options > & Transform::preshear | ( | const Scalar & | sx, |
const Scalar & | sy | ||
) |
Applies on the left the shear transformation represented by the vector other to *this
and returns a reference to *this
.
Definition at line 928 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::pretranslate | ( | const MatrixBase< OtherDerived > & | other | ) |
Applies on the left the translation matrix represented by the vector other to *this
and returns a reference to *this
.
Definition at line 447 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::pretranslate | ( | const MatrixBase< OtherDerived > & | other | ) |
Applies on the left the translation matrix represented by the vector other to *this
and returns a reference to *this
.
Definition at line 852 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::rotate | ( | const RotationType & | rotation | ) |
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 ei_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.
Definition at line 474 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::rotate | ( | const RotationType & | rotation | ) |
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.
Definition at line 882 of file Transform.h.
const Transform< Scalar, Dim, Mode, Options >::LinearMatrixType Transform::rotation | ( | ) | const |
Definition at line 598 of file Transform.h.
Applies on the right a uniform scale of a factor c to *this
and returns a reference to *this
.
Definition at line 395 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::scale | ( | 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
.
Definition at line 383 of file Transform.h.
|
inline |
Applies on the right a uniform scale of a factor c to *this
and returns a reference to *this
.
Definition at line 797 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::scale | ( | 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
.
Definition at line 784 of file Transform.h.
|
inline |
Definition at line 183 of file Transform.h.
|
inline |
Definition at line 492 of file Transform.h.
Transform< Scalar, Dim > & 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
.
Definition at line 504 of file Transform.h.
Transform< Scalar, Dim, Mode, Options > & Transform::shear | ( | const Scalar & | sx, |
const Scalar & | sy | ||
) |
Applies on the right the shear transformation represented by the vector other to *this
and returns a reference to *this
.
Definition at line 912 of file Transform.h.
Transform<Scalar,Dim>& Eigen::Transform< _Scalar, _Dim >::translate | ( | const MatrixBase< OtherDerived > & | other | ) |
Applies on the right the translation matrix represented by the vector other to *this
and returns a reference to *this
.
Definition at line 433 of file Transform.h.
Transform<Scalar,Dim,Mode,Options>& Eigen::Transform< _Scalar, _Dim >::translate | ( | const MatrixBase< OtherDerived > & | other | ) |
Applies on the right the translation matrix represented by the vector other to *this
and returns a reference to *this
.
Definition at line 838 of file Transform.h.
|
inline |
Definition at line 153 of file Transform.h.
|
inline |
Definition at line 155 of file Transform.h.
|
inline |
Definition at line 382 of file Transform.h.
|
inline |
Definition at line 384 of file Transform.h.
|
friend |
Definition at line 174 of file Transform.h.
|
friend |
The left hand side other might be either:
Definition at line 412 of file Transform.h.
|
friend |
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 438 of file Transform.h.