Please, help us to better know about our user community by answering the following short survey: https://forms.gle/wpyrxWi18ox9Z5ae9
Eigen  3.4.99 (git rev 10c77b0ff44d0b9cb0b252cfa0ccaaa39d3c5da4)
Eigen::UniformScaling< _Scalar > Class Template Reference

Detailed Description

template<typename _Scalar>
class Eigen::UniformScaling< _Scalar >

Represents a generic uniform scaling transformation.

This is defined in the Geometry module.

#include <Eigen/Geometry>
Template Parameters
_Scalarthe 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.

See also
Scaling(), class DiagonalMatrix, MatrixBase::asDiagonal(), class Translation, class Transform

Public Types

typedef _Scalar Scalar
 

Public Member Functions

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

Related Functions

(Note that these are not member functions.)

template<typename Derived , typename Scalar >
 operator* (const MatrixBase< Derived > &matrix, const UniformScaling< Scalar > &s)
 

Member Typedef Documentation

◆ Scalar

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

the scalar type of the coefficients

Constructor & Destructor Documentation

◆ UniformScaling() [1/3]

template<typename _Scalar >
Eigen::UniformScaling< _Scalar >::UniformScaling ( )
inline

Default constructor without initialization.

◆ UniformScaling() [2/3]

template<typename _Scalar >
Eigen::UniformScaling< _Scalar >::UniformScaling ( const Scalar s)
inlineexplicit

Constructs and initialize a uniform scaling transformation

◆ UniformScaling() [3/3]

template<typename _Scalar >
template<typename OtherScalarType >
Eigen::UniformScaling< _Scalar >::UniformScaling ( const UniformScaling< OtherScalarType > &  other)
inlineexplicit

Copy constructor with scalar type conversion

Member Function Documentation

◆ cast()

template<typename _Scalar >
template<typename NewScalarType >
UniformScaling<NewScalarType> Eigen::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.

◆ inverse()

template<typename _Scalar >
UniformScaling Eigen::UniformScaling< _Scalar >::inverse ( ) const
inline
Returns
the inverse scaling

◆ isApprox()

template<typename _Scalar >
bool Eigen::UniformScaling< _Scalar >::isApprox ( const UniformScaling< _Scalar > &  other,
const 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()

◆ operator*() [1/4]

template<typename _Scalar >
template<typename Derived >
Eigen::internal::plain_matrix_type<Derived>::type Eigen::UniformScaling< _Scalar >::operator* ( const MatrixBase< Derived > &  other) const
inline

Concatenates a uniform scaling and a linear transformation matrix

◆ operator*() [2/4]

template<typename _Scalar >
template<int Dim, int Mode, int Options>
internal::uniformscaling_times_affine_returntype<Scalar,Dim,Mode>::type Eigen::UniformScaling< _Scalar >::operator* ( const Transform< Scalar, Dim, Mode, Options > &  t) const
inline

Concatenates a uniform scaling and an affine transformation

◆ operator*() [3/4]

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

Concatenates a uniform scaling and a translation

◆ operator*() [4/4]

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

Concatenates two uniform scaling

Friends And Related Function Documentation

◆ operator*()

template<typename Derived , typename Scalar >
operator* ( const MatrixBase< Derived > &  matrix,
const UniformScaling< Scalar > &  s 
)
related

Concatenates a linear transformation matrix and a uniform scaling


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