Public Types | Public Member Functions | Protected Attributes

UniformScaling< _Scalar > Class Template Reference

#include <Scaling.h>

List of all members.

Public Types

typedef _Scalar Scalar

Public Member Functions

 UniformScaling ()
 UniformScaling (const Scalar &s)
const Scalarfactor () const
Scalarfactor ()
UniformScaling operator* (const UniformScaling &other) const
template<int Dim>
Transform< Scalar, Dim, Affine > operator* (const Translation< Scalar, Dim > &t) const
template<int Dim, int Mode, int Options>
Transform< Scalar, Dim, Mode > operator* (const Transform< Scalar, Dim, Mode, Options > &t) const
template<typename Derived >
internal::plain_matrix_type
< Derived >::type 
operator* (const MatrixBase< Derived > &other) const
template<typename Derived , int Dim>
Matrix< Scalar, Dim, Dim > operator* (const RotationBase< Derived, Dim > &r) const
UniformScaling inverse () const
template<typename NewScalarType >
UniformScaling< NewScalarType > cast () const
template<typename OtherScalarType >
 UniformScaling (const UniformScaling< OtherScalarType > &other)
bool isApprox (const UniformScaling &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const

Protected Attributes

Scalar m_factor

template<typename _Scalar>
class UniformScaling< _Scalar >


Member Typedef Documentation

template<typename _Scalar>
typedef _Scalar UniformScaling< _Scalar >::Scalar

the scalar type of the coefficients


Constructor & Destructor Documentation

template<typename _Scalar>
UniformScaling< _Scalar >::UniformScaling (  )  [inline]

Default constructor without initialization.

template<typename _Scalar>
UniformScaling< _Scalar >::UniformScaling ( const Scalar s  )  [inline, explicit]

Constructs and initialize a uniform scaling transformation

template<typename _Scalar>
template<typename OtherScalarType >
UniformScaling< _Scalar >::UniformScaling ( const UniformScaling< OtherScalarType > &  other  )  [inline, explicit]

Copy constructor with scalar type conversion


Member Function Documentation

template<typename _Scalar>
template<typename NewScalarType >
UniformScaling<NewScalarType> UniformScaling< _Scalar >::cast (  )  const [inline]
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.

template<typename _Scalar>
const Scalar& UniformScaling< _Scalar >::factor (  )  const [inline]
template<typename _Scalar>
Scalar& UniformScaling< _Scalar >::factor (  )  [inline]
template<typename _Scalar>
UniformScaling UniformScaling< _Scalar >::inverse ( void   )  const [inline]
Returns:
the inverse scaling
template<typename _Scalar>
bool UniformScaling< _Scalar >::isApprox ( const UniformScaling< _Scalar > &  other,
typename NumTraits< Scalar >::Real  prec = NumTraits<Scalar>::dummy_precision() 
) const [inline]
Returns:
true if *this is approximately equal to other, within the precision determined by prec.
See also:
MatrixBase::isApprox()
template<typename _Scalar>
template<typename Derived >
internal::plain_matrix_type<Derived>::type UniformScaling< _Scalar >::operator* ( const MatrixBase< Derived > &  other  )  const [inline]

Concatenates a uniform scaling and a linear transformation matrix

template<typename Scalar >
template<int Dim>
Transform< Scalar, Dim, Affine > UniformScaling< Scalar >::operator* ( const Translation< Scalar, Dim > &  t  )  const [inline]

Concatenates a uniform scaling and a translation

template<typename Scalar >
template<int Dim, int Mode, int Options>
Transform< Scalar, Dim, Mode > UniformScaling< Scalar >::operator* ( const Transform< Scalar, Dim, Mode, Options > &  t  )  const [inline]

Concatenates a uniform scaling and an affine transformation

template<typename _Scalar>
UniformScaling UniformScaling< _Scalar >::operator* ( const UniformScaling< _Scalar > &  other  )  const [inline]

Concatenates two uniform scaling

template<typename _Scalar>
template<typename Derived , int Dim>
Matrix<Scalar,Dim,Dim> UniformScaling< _Scalar >::operator* ( const RotationBase< Derived, Dim > &  r  )  const [inline]

Member Data Documentation

template<typename _Scalar>
Scalar UniformScaling< _Scalar >::m_factor [protected]

The documentation for this class was generated from the following file: