Represents a translation transformation.
More...
List of all members.
Public Types |
enum | { Dim
} |
typedef Matrix< Scalar, Dim, Dim > | LinearMatrixType |
typedef _Scalar | Scalar |
typedef Scaling< Scalar, Dim > | ScalingType |
typedef Transform< Scalar, Dim > | TransformType |
typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions |
template<typename NewScalarType > |
ei_cast_return_type
< Translation, Translation
< NewScalarType, Dim > >::type | cast () const |
Translation | inverse () const |
bool | isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
TransformType | operator* (const ScalingType &other) const |
TransformType | operator* (const LinearMatrixType &linear) const |
template<typename Derived > |
TransformType | operator* (const RotationBase< Derived, Dim > &r) const |
TransformType | operator* (const TransformType &t) const |
VectorType | operator* (const VectorType &other) const |
Translation | operator* (const Translation &other) const |
Translation & | operator= (const Translation &other) |
| Translation (const Scalar &sx, const Scalar &sy) |
| Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz) |
template<typename OtherScalarType > |
| Translation (const Translation< OtherScalarType, Dim > &other) |
| Translation () |
| Translation (const VectorType &vector) |
VectorType & | vector () |
const VectorType & | vector () const |
Protected Attributes |
VectorType | m_coeffs |
Friends |
TransformType | operator* (const LinearMatrixType &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 linear transformation matrix type
the scalar type of the coefficients
corresponding scaling transformation type
corresponding affine transformation type
corresponding vector type
Member Enumeration Documentation
Constructor & Destructor Documentation
Default constructor without initialization.
Constructs and initialize the scaling transformation from a vector of scaling 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 a translation and a scaling
Applies translation to vector
Concatenates two translation
Concatenates a translation and an affine transformation
Concatenates a translation and a linear transformation
Friends And Related Function Documentation
Concatenates a linear transformation and a translation
The documentation for this class was generated from the following file: