Home | History | Annotate | Download | only in Geometry

Lines Matching refs:Scaling

16   * \class Scaling
18 * \brief Represents a possibly non uniform scaling transformation
23 * \note This class is not aimed to be used to store a scaling transformation,
29 class Scaling
53 Scaling() {}
54 /** Constructs and initialize a uniform scaling transformation */
55 explicit inline Scaling(const Scalar& s) { m_coeffs.setConstant(s); }
57 inline Scaling(const Scalar& sx, const Scalar& sy)
64 inline Scaling(const Scalar& sx, const Scalar& sy, const Scalar& sz)
71 /** Constructs and initialize the scaling transformation from a vector of scaling coefficients */
72 explicit inline Scaling(const VectorType& coeffs) : m_coeffs(coeffs) {}
77 /** Concatenates two scaling */
78 inline Scaling operator* (const Scaling& other) const
79 { return Scaling(coeffs().cwise() * other.coeffs()); }
81 /** Concatenates a scaling and a translation */
84 /** Concatenates a scaling and an affine transformation */
87 /** Concatenates a scaling and a linear transformation matrix */
92 /** Concatenates a linear transformation matrix and a scaling */
94 friend inline LinearMatrixType operator* (const LinearMatrixType& other, const Scaling& s)
101 /** Applies scaling to vector */
105 /** \returns the inverse scaling */
106 inline Scaling inverse() const
107 { return Scaling(coeffs().cwise().inverse()); }
109 inline Scaling& operator=(const Scaling& other)
121 inline typename internal::cast_return_type<Scaling,Scaling<NewScalarType,Dim> >::type cast() const
122 { return typename internal::cast_return_type<Scaling,Scaling<NewScalarType,Dim> >::type(*this); }
126 inline explicit Scaling(const Scaling<OtherScalarType,Dim>& other)
133 bool isApprox(const Scaling& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()) const
140 typedef Scaling<float, 2> Scaling2f;
141 typedef Scaling<double,2> Scaling2d;
142 typedef Scaling<float, 3> Scaling3f;
143 typedef Scaling<double,3> Scaling3d;
147 inline typename Scaling<Scalar,Dim>::TransformType
148 Scaling<Scalar,Dim>::operator* (const TranslationType& t) const
159 inline typename Scaling<Scalar,Dim>::TransformType
160 Scaling<Scalar,Dim>::operator* (const TransformType& t) const