Spec-Zone.ru › Eigen3
Eigen::Translation
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 >
internal::enable_if< Derived::IsVectorAtCompileTime, VectorType >::type
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)
Scalar &
x ()
Returns the x-translation as a reference.
Scalar
x () const
Returns the x-translation by value.
Scalar &
y ()
Returns the y-translation as a reference.
Scalar
y () const
Returns the y-translation by value.
Scalar &
z ()
Returns the z-translation as a reference.
Scalar
z () const
Returns the z-translation by value.
AffineTransformType template<typename _Scalar , int _Dim>
corresponding affine transformation type
IsometryTransformType template<typename _Scalar , int _Dim>
corresponding isometric transformation type
LinearMatrixType template<typename _Scalar , int _Dim>
corresponding linear transformation matrix type
Scalar template<typename _Scalar , int _Dim>
the scalar type of the coefficients
VectorType template<typename _Scalar , int _Dim>
corresponding vector type
anonymous enum template<typename _Scalar , int _Dim>
Translation() [1/3]
template<typename _Scalar , int _Dim>
Default constructor without initialization.
Translation() [2/3]
template<typename _Scalar , int _Dim>
Constructs and initialize the translation transformation from a vector of translation coefficients
Translation() [3/3]
template<typename _Scalar , int _Dim>
template<typename OtherScalarType >
Copy constructor with scalar type conversion
cast() template<typename _Scalar , int _Dim>
template<typename NewScalarType >
Returns
*this with scalar type casted to NewScalarType
Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
inverse() template<typename _Scalar , int _Dim>
Returns
the inverse translation (opposite)
isApprox() template<typename _Scalar , int _Dim>
Returns
true if *this is approximately equal to other , within the precision determined by prec .
See also
MatrixBase::isApprox()
operator*() [1/6]
template<typename Scalar , int Dim>
template<typename OtherDerived >
Concatenates a translation and a linear transformation
operator*() [2/6]
template<typename _Scalar , int _Dim>
template<typename Derived >
Applies translation to vector
operator*() [3/6]
template<typename _Scalar , int _Dim>
template<typename Derived >
Concatenates a translation and a rotation
operator*() [4/6]
template<typename _Scalar , int _Dim>
template<int Mode, int Options>
Concatenates a translation and a transformation
operator*() [5/6]
template<typename _Scalar , int _Dim>
Concatenates two translation
operator*() [6/6]
template<typename Scalar , int Dim>
Concatenates a translation and a uniform scaling
The documentation for this class was generated from the following file: