Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends

Translation< _Scalar, _Dim > Class Template Reference
[Geometry_Module]

Represents a translation transformation. More...

#include <Translation.h>

Collaboration diagram for Translation< _Scalar, _Dim >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { Dim = _Dim }
enum  { Dim = _Dim }
typedef Transform< Scalar, Dim,
Affine > 
AffineTransformType
typedef Matrix< Scalar, Dim, Dim > LinearMatrixType
typedef Matrix< Scalar, Dim, Dim > LinearMatrixType
typedef _Scalar Scalar
typedef _Scalar Scalar
typedef Scaling< Scalar, Dim > ScalingType
typedef Transform< Scalar, Dim > TransformType
typedef Matrix< Scalar, Dim, 1 > VectorType
typedef Matrix< Scalar, Dim, 1 > VectorType

Public Member Functions

template<typename NewScalarType >
internal::cast_return_type
< Translation, Translation
< NewScalarType, Dim > >::type 
cast () const
template<typename NewScalarType >
internal::cast_return_type
< Translation, Translation
< NewScalarType, Dim > >::type 
cast () const
Translation inverse () const
Translation inverse () const
bool isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const
bool isApprox (const Translation &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const
TransformType operator* (const LinearMatrixType &linear) const
Translation operator* (const Translation &other) const
AffineTransformType operator* (const UniformScaling< Scalar > &other) const
template<typename OtherDerived >
AffineTransformType operator* (const EigenBase< OtherDerived > &linear) const
template<typename Derived >
AffineTransformType operator* (const RotationBase< Derived, Dim > &r) const
TransformType operator* (const ScalingType &other) const
VectorType operator* (const VectorType &other) const
template<int Mode, int Options>
Transform< Scalar, Dim, Mode > operator* (const Transform< Scalar, Dim, Mode, Options > &t) 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
Translationoperator= (const Translation &other)
Translationoperator= (const Translation &other)
VectorTypetranslation ()
 Translation (const Scalar &sx, const Scalar &sy)
 Translation (const Scalar &sx, const Scalar &sy)
 Translation ()
template<typename OtherScalarType >
 Translation (const Translation< OtherScalarType, Dim > &other)
 Translation (const VectorType &vector)
template<typename OtherScalarType >
 Translation (const Translation< OtherScalarType, Dim > &other)
 Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz)
 Translation (const VectorType &vector)
const VectorTypetranslation () const
 Translation ()
 Translation (const Scalar &sx, const Scalar &sy, const Scalar &sz)
const VectorTypevector () const
VectorTypevector ()
VectorTypevector ()
const VectorTypevector () const
Scalar x () const
 Retruns the x-translation by value.
Scalarx ()
 Retruns the x-translation as a reference.
Scalar y () const
 Retruns the y-translation by value.
Scalary ()
 Retruns the y-translation as a reference.
Scalar z () const
 Retruns the z-translation by value.
Scalarz ()
 Retruns the z-translation as a reference.

Static Public Member Functions

static const Translation Identity ()

Protected Attributes

VectorType m_coeffs

Friends

TransformType operator* (const LinearMatrixType &linear, const Translation &t)
template<typename OtherDerived >
AffineTransformType operator* (const EigenBase< OtherDerived > &linear, const Translation &t)

Detailed Description

template<typename _Scalar, int _Dim>
class Translation< _Scalar, _Dim >

Represents a translation transformation.

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 43 of file Translation.h.


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

Generated by  Doxygen 1.6.0   Back to index