Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
Eigen::Translation< _Scalar, _Dim > Class Template Reference

Represents a translation transformation. More...

#include <ForwardDeclarations.h>

Public Types

enum  { Dim = _Dim }
 
typedef Transform< Scalar, Dim, AffineAffineTransformType
 
typedef Transform< Scalar, Dim, IsometryIsometryTransformType
 
typedef Matrix< Scalar, Dim, DimLinearMatrixType
 
typedef _Scalar Scalar
 
typedef Matrix< Scalar, Dim, 1 > VectorType
 

Public Member Functions

template<typename NewScalarType >
EIGEN_DEVICE_FUNC internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type cast () const
 
Translation inverse () const
 
EIGEN_DEVICE_FUNC bool isApprox (const Translation &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
 
EIGEN_DEVICE_FUNC Translation operator* (const Translation &other) const
 
EIGEN_DEVICE_FUNC AffineTransformType operator* (const UniformScaling< Scalar > &other) const
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC AffineTransformType operator* (const EigenBase< OtherDerived > &linear) const
 
template<typename Derived >
EIGEN_DEVICE_FUNC IsometryTransformType operator* (const RotationBase< Derived, Dim > &r) const
 
template<int Mode, int Options>
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Mode > operator* (const Transform< Scalar, Dim, Mode, Options > &t) const
 
template<typename Derived >
internal::enable_if< Derived::IsVectorAtCompileTime, VectorType >::type operator* (const MatrixBase< Derived > &vec) const
 
EIGEN_DEVICE_FUNC Translation ()
 
EIGEN_DEVICE_FUNC Translation (const Scalar &sx, const Scalar &sy)
 
EIGEN_DEVICE_FUNC Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz)
 
EIGEN_DEVICE_FUNC Translation (const VectorType &vector)
 
EIGEN_DEVICE_FUNC const VectorTypetranslation () const
 
EIGEN_DEVICE_FUNC VectorTypetranslation ()
 
template<typename OtherScalarType >
EIGEN_DEVICE_FUNC Translation (const Translation< OtherScalarType, Dim > &other)
 
EIGEN_DEVICE_FUNC const VectorTypevector () const
 
EIGEN_DEVICE_FUNC VectorTypevector ()
 
EIGEN_DEVICE_FUNC Scalar x () const
 Returns the x-translation by value. More...
 
EIGEN_DEVICE_FUNC Scalarx ()
 Returns the x-translation as a reference. More...
 
EIGEN_DEVICE_FUNC Scalar y () const
 Returns the y-translation by value. More...
 
EIGEN_DEVICE_FUNC Scalary ()
 Returns the y-translation as a reference. More...
 
EIGEN_DEVICE_FUNC Scalar z () const
 Returns the z-translation by value. More...
 
EIGEN_DEVICE_FUNC Scalarz ()
 Returns the z-translation as a reference. More...
 

Static Public Member Functions

static const Translation Identity ()
 

Protected Attributes

VectorType m_coeffs
 

Friends

template<typename OtherDerived >
EIGEN_DEVICE_FUNC 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.

Template Parameters
_Scalarthe scalar type, i.e., the type of the coefficients.
_Dimthe 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

Definition at line 291 of file ForwardDeclarations.h.

Member Typedef Documentation

◆ AffineTransformType

template<typename _Scalar, int _Dim>
typedef Transform<Scalar,Dim,Affine> Eigen::Translation< _Scalar, _Dim >::AffineTransformType

corresponding affine transformation type

Definition at line 43 of file Translation.h.

◆ IsometryTransformType

template<typename _Scalar, int _Dim>
typedef Transform<Scalar,Dim,Isometry> Eigen::Translation< _Scalar, _Dim >::IsometryTransformType

corresponding isometric transformation type

Definition at line 45 of file Translation.h.

◆ LinearMatrixType

template<typename _Scalar, int _Dim>
typedef Matrix<Scalar,Dim,Dim> Eigen::Translation< _Scalar, _Dim >::LinearMatrixType

corresponding linear transformation matrix type

Definition at line 41 of file Translation.h.

◆ Scalar

template<typename _Scalar, int _Dim>
typedef _Scalar Eigen::Translation< _Scalar, _Dim >::Scalar

the scalar type of the coefficients

Definition at line 37 of file Translation.h.

◆ VectorType

template<typename _Scalar, int _Dim>
typedef Matrix<Scalar,Dim,1> Eigen::Translation< _Scalar, _Dim >::VectorType

corresponding vector type

Definition at line 39 of file Translation.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar, int _Dim>
anonymous enum

dimension of the space

Enumerator
Dim 

Definition at line 35 of file Translation.h.

Constructor & Destructor Documentation

◆ Translation() [1/5]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Eigen::Translation< _Scalar, _Dim >::Translation ( )
inline

Default constructor without initialization.

Definition at line 54 of file Translation.h.

◆ Translation() [2/5]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Eigen::Translation< _Scalar, _Dim >::Translation ( const Scalar sx,
const Scalar sy 
)
inline

Definition at line 56 of file Translation.h.

◆ Translation() [3/5]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Eigen::Translation< _Scalar, _Dim >::Translation ( const Scalar sx,
const Scalar sy,
const Scalar sz 
)
inline

Definition at line 63 of file Translation.h.

◆ Translation() [4/5]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Eigen::Translation< _Scalar, _Dim >::Translation ( const VectorType vector)
inlineexplicit

Constructs and initialize the translation transformation from a vector of translation coefficients

Definition at line 71 of file Translation.h.

◆ Translation() [5/5]

template<typename _Scalar, int _Dim>
template<typename OtherScalarType >
EIGEN_DEVICE_FUNC Eigen::Translation< _Scalar, _Dim >::Translation ( const Translation< OtherScalarType, Dim > &  other)
inlineexplicit

Copy constructor with scalar type conversion

Definition at line 154 of file Translation.h.

Member Function Documentation

◆ cast()

template<typename _Scalar, int _Dim>
template<typename NewScalarType >
EIGEN_DEVICE_FUNC internal::cast_return_type<Translation,Translation<NewScalarType,Dim> >::type Eigen::Translation< _Scalar, _Dim >::cast ( ) const
inline
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.

Definition at line 149 of file Translation.h.

◆ Identity()

template<typename _Scalar, int _Dim>
static const Translation Eigen::Translation< _Scalar, _Dim >::Identity ( )
inlinestatic

Definition at line 141 of file Translation.h.

◆ inverse()

template<typename _Scalar, int _Dim>
Translation Eigen::Translation< _Scalar, _Dim >::inverse ( ) const
inline
Returns
the inverse translation (opposite)

Definition at line 139 of file Translation.h.

◆ isApprox()

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC bool Eigen::Translation< _Scalar, _Dim >::isApprox ( const Translation< _Scalar, _Dim > &  other,
const typename NumTraits< Scalar >::Real prec = NumTraits<Scalar>::dummy_precision() 
) const
inline
Returns
true if *this is approximately equal to other, within the precision determined by prec.
See also
MatrixBase::isApprox()

Definition at line 161 of file Translation.h.

◆ operator*() [1/6]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Translation Eigen::Translation< _Scalar, _Dim >::operator* ( const Translation< _Scalar, _Dim > &  other) const
inline

Concatenates two translation

Definition at line 94 of file Translation.h.

◆ operator*() [2/6]

template<typename Scalar , int Dim>
EIGEN_DEVICE_FUNC Translation< Scalar, Dim >::AffineTransformType Eigen::Translation< Scalar, Dim >::operator* ( const UniformScaling< Scalar > &  other) const
inline

Concatenates a translation and a uniform scaling

Definition at line 176 of file Translation.h.

◆ operator*() [3/6]

template<typename Scalar , int Dim>
template<typename OtherDerived >
EIGEN_DEVICE_FUNC Translation< Scalar, Dim >::AffineTransformType Eigen::Translation< Scalar, Dim >::operator* ( const EigenBase< OtherDerived > &  linear) const
inline

Concatenates a translation and a linear transformation

Definition at line 189 of file Translation.h.

◆ operator*() [4/6]

template<typename _Scalar, int _Dim>
template<typename Derived >
EIGEN_DEVICE_FUNC IsometryTransformType Eigen::Translation< _Scalar, _Dim >::operator* ( const RotationBase< Derived, Dim > &  r) const
inline

Concatenates a translation and a rotation

Definition at line 106 of file Translation.h.

◆ operator*() [5/6]

template<typename _Scalar, int _Dim>
template<int Mode, int Options>
EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode> Eigen::Translation< _Scalar, _Dim >::operator* ( const Transform< Scalar, Dim, Mode, Options > &  t) const
inline

Concatenates a translation and a transformation

Definition at line 125 of file Translation.h.

◆ operator*() [6/6]

template<typename _Scalar, int _Dim>
template<typename Derived >
internal::enable_if<Derived::IsVectorAtCompileTime,VectorType>::type Eigen::Translation< _Scalar, _Dim >::operator* ( const MatrixBase< Derived > &  vec) const
inline

Applies translation to vector

Definition at line 135 of file Translation.h.

◆ translation() [1/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC const VectorType& Eigen::Translation< _Scalar, _Dim >::translation ( ) const
inline

Definition at line 90 of file Translation.h.

◆ translation() [2/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC VectorType& Eigen::Translation< _Scalar, _Dim >::translation ( )
inline

Definition at line 91 of file Translation.h.

◆ vector() [1/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC const VectorType& Eigen::Translation< _Scalar, _Dim >::vector ( ) const
inline

Definition at line 87 of file Translation.h.

◆ vector() [2/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC VectorType& Eigen::Translation< _Scalar, _Dim >::vector ( )
inline

Definition at line 88 of file Translation.h.

◆ x() [1/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar Eigen::Translation< _Scalar, _Dim >::x ( ) const
inline

Returns the x-translation by value.

Definition at line 74 of file Translation.h.

◆ x() [2/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar& Eigen::Translation< _Scalar, _Dim >::x ( )
inline

Returns the x-translation as a reference.

Definition at line 81 of file Translation.h.

◆ y() [1/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar Eigen::Translation< _Scalar, _Dim >::y ( ) const
inline

Returns the y-translation by value.

Definition at line 76 of file Translation.h.

◆ y() [2/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar& Eigen::Translation< _Scalar, _Dim >::y ( )
inline

Returns the y-translation as a reference.

Definition at line 83 of file Translation.h.

◆ z() [1/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar Eigen::Translation< _Scalar, _Dim >::z ( ) const
inline

Returns the z-translation by value.

Definition at line 78 of file Translation.h.

◆ z() [2/2]

template<typename _Scalar, int _Dim>
EIGEN_DEVICE_FUNC Scalar& Eigen::Translation< _Scalar, _Dim >::z ( )
inline

Returns the z-translation as a reference.

Definition at line 85 of file Translation.h.

Friends And Related Function Documentation

◆ operator*

template<typename _Scalar, int _Dim>
template<typename OtherDerived >
EIGEN_DEVICE_FUNC AffineTransformType operator* ( const EigenBase< OtherDerived > &  linear,
const Translation< _Scalar, _Dim > &  t 
)
friend
Returns
the concatenation of a linear transformation l with the translation t

Definition at line 112 of file Translation.h.

Member Data Documentation

◆ m_coeffs

template<typename _Scalar, int _Dim>
VectorType Eigen::Translation< _Scalar, _Dim >::m_coeffs
protected

Definition at line 49 of file Translation.h.


The documentation for this class was generated from the following files:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:44:17