Represents a translation transformation.
More...
List of all members.
Public Types |
enum | |
typedef Transform< Scalar, Dim,
Affine > | AffineTransformType |
typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions |
template<typename NewScalarType > |
internal::cast_return_type
< Translation, Translation
< NewScalarType, Dim > >::type | cast () const |
Translation | inverse () const |
bool | isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherDerived > |
AffineTransformType | operator* (const EigenBase< OtherDerived > &linear) const |
template<typename Derived > |
AffineTransformType | 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 |
VectorType | operator* (const VectorType &other) const |
AffineTransformType | operator* (const UniformScaling< Scalar > &other) const |
| Translation (const Scalar &sx, const Scalar &sy) |
| Translation (const VectorType &vector) |
template<typename OtherScalarType > |
| Translation (const Translation< OtherScalarType, Dim > &other) |
| Translation () |
| Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) |
Scalar & | x () |
| Retruns the x-translation as a reference.
|
Scalar | x () const |
| Retruns the x-translation by value.
|
Scalar & | y () |
| Retruns the y-translation as a reference.
|
Scalar | y () const |
| Retruns the y-translation by value.
|
Scalar | z () const |
| Retruns the z-translation by value.
|
Scalar & | z () |
| Retruns the z-translation as a reference.
|
Friends |
template<typename OtherDerived > |
AffineTransformType | operator* (const EigenBase< OtherDerived > &linear, const Translation &t) |
Detailed Description
template<typename _Scalar, int _Dim>
class Eigen::Translation< _Scalar, _Dim >
Represents a translation transformation.
This is defined in the Geometry module.
#include <Eigen/Geometry>
- 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
Member Typedef Documentation
corresponding affine transformation type
corresponding linear transformation matrix type
the scalar type of the coefficients
corresponding vector type
Member Enumeration Documentation
Constructor & Destructor Documentation
Default constructor without initialization.
Constructs and initialize the translation transformation from a vector of translation coefficients
Copy constructor with scalar type conversion
Member Function Documentation
- 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
.
- Returns:
- the inverse translation (opposite)
- Returns:
true
if *this
is approximately equal to other, within the precision determined by prec.
- See also:
- MatrixBase::isApprox()
Concatenates two translation
Applies translation to vector
Concatenates a translation and a uniform scaling
Concatenates a translation and a transformation
Concatenates a translation and a linear transformation
Concatenates a translation and a rotation
Friends And Related Function Documentation
- Returns:
- the concatenation of a linear transformation l with the translation t
The documentation for this class was generated from the following file: