template<typename Scalar_, int Dim_>
class Eigen::Translation< Scalar_, Dim_ >
Represents a translation transformation.
This is defined in the Geometry module.
#include <Eigen/Geometry>
- Template Parameters
-
| Scalar_ | the scalar type, i.e., the type of the coefficients. |
| Dim_ | the dimension of the space, can be a compile time value or Dynamic |
- Note
- This class is not aimed to be used to store a translation transformation, but rather to make easier the constructions and updates of Transform objects.
- See also
- class Scaling, class Transform
|
| template<typename NewScalarType> |
| internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type | cast () const |
| |
| Translation | inverse () const |
| |
| bool | isApprox (const Translation &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| template<typename OtherDerived> |
| AffineTransformType | operator* (const EigenBase< OtherDerived > &linear) const |
| |
| template<typename Derived> |
| std::enable_if_t< Derived::IsVectorAtCompileTime, VectorType > | operator* (const MatrixBase< Derived > &vec) const |
| |
| template<typename Derived> |
| IsometryTransformType | operator* (const RotationBase< Derived, Dim > &r) const |
| |
| template<int Mode, int Options> |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| |
| Translation | operator* (const Translation &other) const |
| |
| AffineTransformType | operator* (const UniformScaling< Scalar > &other) const |
| |
| | Translation () |
| |
| template<typename OtherScalarType> |
| | Translation (const Translation< OtherScalarType, Dim > &other) |
| |
| | Translation (const VectorType &vector) |
| |
|
constexpr Scalar & | x () |
| | Returns the x-translation as a reference.
|
| |
|
constexpr Scalar | x () const |
| | Returns the x-translation by value.
|
| |
|
constexpr Scalar & | y () |
| | Returns the y-translation as a reference.
|
| |
|
constexpr Scalar | y () const |
| | Returns the y-translation by value.
|
| |
|
constexpr Scalar & | z () |
| | Returns the z-translation as a reference.
|
| |
|
constexpr Scalar | z () const |
| | Returns the z-translation by value.
|
| |