10#ifndef EIGEN_SCALING_H
11#define EIGEN_SCALING_H
37 template <
typename Scalar,
int Dim,
int Mode>
48template<
typename _Scalar>
66 inline const Scalar& factor()
const {
return m_factor; }
67 inline Scalar& factor() {
return m_factor; }
78 template<
int Dim,
int Mode,
int Options>
84 res.prescale(factor());
90 template<
typename Derived>
92 {
return other * m_factor; }
94 template<
typename Derived,
int Dim>
96 {
return r.toRotationMatrix() * m_factor; }
107 template<
typename NewScalarType>
112 template<
typename OtherScalarType>
114 { m_factor =
Scalar(other.factor()); }
121 {
return internal::isApprox(m_factor, other.factor(),
prec); }
133template<
typename Derived,
typename Scalar>
134EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(Derived,Scalar,product)
136{
return matrix.derived() * s.factor(); }
143template<
typename RealScalar>
148template<
typename Scalar>
152template<
typename Scalar>
159template<
typename Derived>
173template<
typename Scalar>
179 res.matrix().setZero();
180 res.linear().diagonal().fill(factor());
181 res.translation() = factor() * t.vector();
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
EIGEN_DEVICE_FUNC const DiagonalWrapper< const Derived > asDiagonal() const
Definition DiagonalMatrix.h:325
@ Affine
Transformation is an affine transformation stored as a (Dim+1)^2 matrix whose last row is assumed to ...
Definition Constants.h:460
@ Isometry
Transformation is an isometry.
Definition Constants.h:457
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
UniformScaling< float > Scaling(float s)
Constructs a uniform scaling from scale factor s.
Definition Scaling.h:139
Holds information about the various numeric (i.e.
Definition NumTraits.h:236
Definition XprHelper.h:295