Represents a possibly non uniform scaling transformation. More...
Public Types | |
| enum | { Dim } |
| typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
| typedef _Scalar | Scalar |
| typedef Transform< Scalar, Dim > | TransformType |
| typedef Translation< Scalar, Dim > | TranslationType |
| typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
| template<typename NewScalarType > | |
| ei_cast_return_type< Scaling, Scaling< NewScalarType, Dim > >::type | cast () const |
| const VectorType & | coeffs () const |
| VectorType & | coeffs () |
| Scaling | inverse () const |
| bool | isApprox (const Scaling &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
| TransformType | operator* (const TranslationType &t) const |
| Scaling | operator* (const Scaling &other) const |
| TransformType | operator* (const TransformType &t) const |
| LinearMatrixType | operator* (const LinearMatrixType &other) const |
| template<typename Derived > | |
| LinearMatrixType | operator* (const RotationBase< Derived, Dim > &r) const |
| VectorType | operator* (const VectorType &other) const |
| Scaling & | operator= (const Scaling &other) |
| template<typename OtherScalarType > | |
| Scaling (const Scaling< OtherScalarType, Dim > &other) | |
| Scaling (const VectorType &coeffs) | |
| Scaling (const Scalar &sx, const Scalar &sy) | |
| Scaling () | |
| Scaling (const Scalar &s) | |
| Scaling (const Scalar &sx, const Scalar &sy, const Scalar &sz) | |
Protected Attributes | |
| VectorType | m_coeffs |
Friends | |
| LinearMatrixType | operator* (const LinearMatrixType &other, const Scaling &s) |
Represents a possibly non uniform scaling transformation.
This is defined in the Geometry module.
#include <Eigen/Geometry>
| _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 Transform<Scalar,Dim> TransformType |
corresponding affine transformation type
| typedef Translation<Scalar,Dim> TranslationType |
corresponding translation type
| typedef Matrix<Scalar,Dim,1> VectorType |
corresponding vector type
| anonymous enum |
dimension of the space
| Scaling | ( | ) | [inline] |
Default constructor without initialization.
Constructs and initialize a uniform scaling transformation
| Scaling | ( | const VectorType & | coeffs | ) | [inline, explicit] |
Constructs and initialize the scaling transformation from a vector of scaling coefficients
Copy constructor with scalar type conversion
*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.
| Scaling inverse | ( | void | ) | const [inline] |
| bool isApprox | ( | const Scaling< _Scalar, _Dim > & | other, | |
| typename NumTraits< Scalar >::Real | prec = precision<Scalar>() | |||
| ) | const [inline] |
true if *this is approximately equal to other, within the precision determined by prec.| Scaling< Scalar, Dim >::TransformType operator* | ( | const TransformType & | t | ) | const [inline] |
Concatenates a scaling and an affine transformation
Concatenates two scaling
| LinearMatrixType operator* | ( | const LinearMatrixType & | other | ) | const [inline] |
Concatenates a scaling and a linear transformation matrix
| VectorType operator* | ( | const VectorType & | other | ) | const [inline] |
Applies scaling to vector
| Scaling< Scalar, Dim >::TransformType operator* | ( | const TranslationType & | t | ) | const [inline] |
Concatenates a scaling and a translation
| LinearMatrixType operator* | ( | const LinearMatrixType & | other, | |
| const Scaling< _Scalar, _Dim > & | s | |||
| ) | [friend] |
Concatenates a linear transformation matrix and a scaling
1.7.1