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 |
| Scaling | operator* (const Scaling &other) const |
| TransformType | operator* (const TranslationType &t) 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) |
| Scaling () | |
| Scaling (const Scalar &s) | |
| Scaling (const Scalar &sx, const Scalar &sy) | |
| Scaling (const Scalar &sx, const Scalar &sy, const Scalar &sz) | |
| Scaling (const VectorType &coeffs) | |
| template<typename OtherScalarType > | |
| Scaling (const Scaling< OtherScalarType, Dim > &other) | |
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.
| _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
|
inline |
Default constructor without initialization.
Constructs and initialize a uniform scaling transformation
|
inlineexplicit |
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.
|
inline |
|
inline |
true if *this is approximately equal to other, within the precision determined by prec.
|
inline |
Concatenates a scaling and a translation
|
inline |
Concatenates a scaling and an affine transformation
|
inline |
Concatenates a scaling and a linear transformation matrix
|
inline |
Applies scaling to vector
|
friend |
Concatenates a linear transformation matrix and a scaling
1.8.6