Lines Matching defs:Scalar
21 * \param _Scalar the scalar type, i.e., the type of the coefficients.
24 * type of Scaling(Scalar), and most of the time this is the only way it
36 /** the scalar type of the coefficients */
37 typedef _Scalar Scalar;
41 Scalar m_factor;
48 explicit inline UniformScaling(const Scalar& s) : m_factor(s) {}
50 inline const Scalar& factor() const { return m_factor; }
51 inline Scalar& factor() { return m_factor; }
59 inline Transform<Scalar,Dim,Affine> operator* (const Translation<Scalar,Dim>& t) const;
63 inline Transform<Scalar,Dim,(int(Mode)==int(Isometry)?Affine:Mode)> operator* (const Transform<Scalar,Dim, Mode, Options>& t) const
65 Transform<Scalar,Dim,(int(Mode)==int(Isometry)?Affine:Mode)> res = t;
77 inline Matrix<Scalar,Dim,Dim> operator*(const RotationBase<Derived,Dim>& r) const
82 { return UniformScaling(Scalar(1)/m_factor); }
84 /** \returns \c *this with scalar type casted to \a NewScalarType
86 * Note that if \a NewScalarType is equal to the current scalar type of \c *this
93 /** Copy constructor with scalar type conversion */
96 { m_factor = Scalar(other.factor()); }
102 bool isApprox(const UniformScaling& other, typename NumTraits<Scalar>::Real prec = NumTraits<Scalar>::dummy_precision()) const
111 MatrixBase<Derived>::operator*(const UniformScaling<Scalar>& s) const
124 template<typename Scalar>
125 static inline DiagonalMatrix<Scalar,2> Scaling(Scalar sx, Scalar sy)
126 { return DiagonalMatrix<Scalar,2>(sx, sy); }
128 template<typename Scalar>
129 static inline DiagonalMatrix<Scalar,3> Scaling(Scalar sx, Scalar sy, Scalar sz)
130 { return DiagonalMatrix<Scalar,3>(sx, sy, sz); }
151 template<typename Scalar>
153 inline Transform<Scalar,Dim,Affine>
154 UniformScaling<Scalar>::operator* (const Translation<Scalar,Dim>& t) const
156 Transform<Scalar,Dim,Affine> res;
160 res(Dim,Dim) = Scalar(1);