Home | History | Annotate | Download | only in Geometry

Lines Matching refs:Translation

17   * \class Translation
19 * \brief Represents a translation transformation
24 * \note This class is not aimed to be used to store a translation transformation,
30 class Translation
54 Translation() {}
56 inline Translation(const Scalar& sx, const Scalar& sy)
63 inline Translation(const Scalar& sx, const Scalar& sy, const Scalar& sz)
70 /** Constructs and initialize the translation transformation from a vector of translation coefficients */
71 explicit inline Translation(const VectorType& vector) : m_coeffs(vector) {}
73 /** \brief Retruns the x-translation by value. **/
75 /** \brief Retruns the y-translation by value. **/
77 /** \brief Retruns the z-translation by value. **/
80 /** \brief Retruns the x-translation as a reference. **/
82 /** \brief Retruns the y-translation as a reference. **/
84 /** \brief Retruns the z-translation as a reference. **/
90 const VectorType& translation() const { return m_coeffs; }
91 VectorType& translation() { return m_coeffs; }
93 /** Concatenates two translation */
94 inline Translation operator* (const Translation& other) const
95 { return Translation(m_coeffs + other.m_coeffs); }
97 /** Concatenates a translation and a uniform scaling */
100 /** Concatenates a translation and a linear transformation */
104 /** Concatenates a translation and a rotation */
109 /** \returns the concatenation of a linear transformation \a l with the translation \a t */
112 inline AffineTransformType operator*(const EigenBase<OtherDerived>& linear, const Translation& t)
117 res.translation() = linear.derived() * t.m_coeffs;
123 /** Concatenates a translation and a transformation */
132 /** Applies translation to vector */
136 /** \returns the inverse translation (opposite) */
137 Translation inverse() const { return Translation(-m_coeffs); }
139 Translation& operator=(const Translation& other)
145 static const Translation Identity() { return Translation(VectorType::Zero()); }
153 inline typename internal::cast_return_type<Translation,Translation<NewScalarType,Dim> >::type cast() const
154 { return typename internal::cast_return_type<Translation,Translation<NewScalarType,Dim> >::type(*this); }
158 inline explicit Translation(const Translation<OtherScalarType,Dim>& other)
165 bool isApprox(const Translation& other, typename NumTraits<Scalar>::Real prec = NumTraits<Scalar>::dummy_precision()) const
172 typedef Translation<float, 2> Translation2f;
173 typedef Translation<double,2> Translation2d;
174 typedef Translation<float, 3> Translation3f;
175 typedef Translation<double,3> Translation3d;
179 inline typename Translation<Scalar,Dim>::AffineTransformType
180 Translation<Scalar,Dim>::operator* (const UniformScaling<Scalar>& other) const
185 res.translation() = m_coeffs;
192 inline typename Translation<Scalar,Dim>::AffineTransformType
193 Translation<Scalar,Dim>::operator* (const EigenBase<OtherDerived>& linear) const
198 res.translation() = m_coeffs;