Shapeworks Studio
2.1
Shape analysis software suite
|
Represents a possibly non uniform scaling transformation. More...
#include <Scaling.h>
Public Types | |
enum | { Dim = _Dim } |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
typedef Translation< Scalar, Dim > | TranslationType |
typedef Transform< Scalar, Dim > | TransformType |
Public Member Functions | |
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) | |
const VectorType & | coeffs () const |
VectorType & | coeffs () |
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 | inverse () const |
Scaling & | operator= (const Scaling &other) |
template<typename NewScalarType > | |
internal::cast_return_type< Scaling, Scaling< NewScalarType, Dim > >::type | cast () const |
template<typename OtherScalarType > | |
Scaling (const Scaling< OtherScalarType, Dim > &other) | |
bool | isApprox (const Scaling &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
Protected Attributes | |
VectorType | m_coeffs |
Friends | |
LinearMatrixType | operator* (const LinearMatrixType &other, const Scaling &s) |
Represents a possibly non uniform scaling transformation.
Represents a generic uniform scaling transformation.
_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 |
_Scalar | the scalar type, i.e., the type of the coefficients. |
This class represent a uniform scaling transformation. It is the return type of Scaling(Scalar), and most of the time this is the only way it is used. In particular, 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.
To represent an axis aligned scaling, use the DiagonalMatrix class.
typedef Matrix<Scalar,Dim,Dim> Eigen::Scaling< _Scalar, _Dim >::LinearMatrixType |
typedef _Scalar Eigen::Scaling< _Scalar, _Dim >::Scalar |
typedef Transform<Scalar,Dim> Eigen::Scaling< _Scalar, _Dim >::TransformType |
typedef Translation<Scalar,Dim> Eigen::Scaling< _Scalar, _Dim >::TranslationType |
typedef Matrix<Scalar,Dim,1> Eigen::Scaling< _Scalar, _Dim >::VectorType |
anonymous enum |
|
inline |
|
inlineexplicit |
Constructs and initialize a uniform scaling transformation
Definition at line 55 of file Scaling.h.
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
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
.
|
inline |
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |