Scaling< _Scalar, _Dim > Class Template Reference
[Geometry_Module]
Represents a possibly non uniform scaling transformation.
More...
#include <Scaling.h>
List of all members.
Public Types |
enum | { Dim = _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 |
VectorType & | coeffs () |
const VectorType & | coeffs () const |
Scaling | inverse () const |
bool | isApprox (const Scaling &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
VectorType | operator* (const VectorType &other) const |
template<typename Derived > |
LinearMatrixType | operator* (const RotationBase< Derived, Dim > &r) const |
LinearMatrixType | operator* (const LinearMatrixType &other) const |
TransformType | operator* (const TransformType &t) const |
TransformType | operator* (const TranslationType &t) const |
Scaling | operator* (const Scaling &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, const Scalar &sz) |
| Scaling (const Scalar &sx, const Scalar &sy) |
| Scaling (const Scalar &s) |
| Scaling () |
Protected Attributes |
VectorType | m_coeffs |
Friends |
LinearMatrixType | operator* (const LinearMatrixType &other, const Scaling &s) |
Detailed Description
template<typename _Scalar, int _Dim>
class Scaling< _Scalar, _Dim >
Represents a possibly non uniform scaling transformation.
- Parameters:
-
| _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 |
- Note:
- This class is not aimed to be used to store a scaling transformation, but rather to make easier the constructions and updates of Transform objects.
- See also:
- class Translation, class Transform
Definition at line 43 of file Scaling.h.
Member Typedef Documentation
template<typename _Scalar, int _Dim>
corresponding linear transformation matrix type
Definition at line 54 of file Scaling.h.
template<typename _Scalar, int _Dim>
the scalar type of the coefficients
Definition at line 50 of file Scaling.h.
template<typename _Scalar, int _Dim>
corresponding affine transformation type
Definition at line 58 of file Scaling.h.
template<typename _Scalar, int _Dim>
corresponding translation type
Definition at line 56 of file Scaling.h.
template<typename _Scalar, int _Dim>
corresponding vector type
Definition at line 52 of file Scaling.h.
Member Enumeration Documentation
template<typename _Scalar, int _Dim>
dimension of the space
- Enumerator:
-
Definition at line 48 of file Scaling.h.
Constructor & Destructor Documentation
template<typename _Scalar, int _Dim>
Default constructor without initialization.
Definition at line 67 of file Scaling.h.
template<typename _Scalar, int _Dim>
Constructs and initialize a uniform scaling transformation
Definition at line 69 of file Scaling.h.
template<typename _Scalar, int _Dim>
template<typename _Scalar, int _Dim>
template<typename _Scalar, int _Dim>
Constructs and initialize the scaling transformation from a vector of scaling coefficients
Definition at line 86 of file Scaling.h.
template<typename _Scalar, int _Dim>
template<typename OtherScalarType >
Copy constructor with scalar type conversion
Definition at line 140 of file Scaling.h.
Member Function Documentation
template<typename _Scalar, int _Dim>
template<typename NewScalarType >
- 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 135 of file Scaling.h.
template<typename _Scalar, int _Dim>
template<typename _Scalar, int _Dim>
template<typename _Scalar, int _Dim>
- Returns:
- the inverse scaling
Definition at line 120 of file Scaling.h.
template<typename _Scalar, int _Dim>
template<typename _Scalar, int _Dim>
Applies scaling to vector
Definition at line 116 of file Scaling.h.
template<typename _Scalar, int _Dim>
template<typename Derived >
template<typename _Scalar, int _Dim>
Concatenates a scaling and a linear transformation matrix
Definition at line 103 of file Scaling.h.
template<typename Scalar , int Dim>
Concatenates a scaling and an affine transformation
Definition at line 174 of file Scaling.h.
template<typename Scalar , int Dim>
Concatenates a scaling and a translation
Definition at line 162 of file Scaling.h.
template<typename _Scalar, int _Dim>
Concatenates two scaling
Definition at line 92 of file Scaling.h.
template<typename _Scalar, int _Dim>
Friends And Related Function Documentation
template<typename _Scalar, int _Dim>
Concatenates a linear transformation matrix and a scaling
Definition at line 108 of file Scaling.h.
Member Data Documentation
template<typename _Scalar, int _Dim>
The documentation for this class was generated from the following file: