10 #ifndef EIGEN_TRANSLATION_H 11 #define EIGEN_TRANSLATION_H 29 template<
typename _Scalar,
int _Dim>
101 template<
typename OtherDerived>
105 template<
typename Derived>
111 template<
typename OtherDerived>
friend 114 AffineTransformType
res;
124 template<
int Mode,
int Options>
133 template<
typename Derived>
136 {
return m_coeffs + vec.derived(); }
148 template<
typename NewScalarType>
153 template<
typename OtherScalarType>
155 { m_coeffs = other.vector().template cast<Scalar>(); }
162 {
return m_coeffs.isApprox(other.m_coeffs, prec); }
174 template<
typename Scalar,
int Dim>
178 AffineTransformType
res;
186 template<
typename Scalar,
int Dim>
187 template<
typename OtherDerived>
191 AffineTransformType
res;
202 #endif // EIGEN_TRANSLATION_H EIGEN_DEVICE_FUNC VectorType & translation()
EIGEN_DEVICE_FUNC const VectorType & translation() const
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
EIGEN_DEVICE_FUNC Scalar z() const
Returns the z-translation by value.
Translation< double, 3 > Translation3d
Matrix< Scalar, Dim, Dim > LinearMatrixType
EIGEN_DEVICE_FUNC Translation operator*(const Translation &other) const
Namespace containing all symbols from the Eigen library.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static const Translation Identity()
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
Translation< float, 3 > Translation3f
Represents a translation transformation.
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC VectorType & vector()
EIGEN_DEVICE_FUNC Translation(const VectorType &vector)
EIGEN_DEVICE_FUNC Translation(const Scalar &sx, const Scalar &sy)
EIGEN_DEVICE_FUNC bool isApprox(const Translation &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC const VectorType & vector() const
Translation< float, 2 > Translation2f
EIGEN_DEVICE_FUNC internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type cast() const
Translation inverse() const
Transform< Scalar, Dim, Affine > AffineTransformType
EIGEN_DEVICE_FUNC Scalar y() const
Returns the y-translation by value.
Common base class for compact rotation representations.
EIGEN_DEVICE_FUNC Scalar x() const
Returns the x-translation by value.
Transform< Scalar, Dim, Isometry > IsometryTransformType
#define EIGEN_DEVICE_FUNC
EIGEN_DEVICE_FUNC Translation()
EIGEN_DEVICE_FUNC Scalar & y()
Returns the y-translation as a reference.
EIGEN_DEVICE_FUNC Scalar & z()
Returns the z-translation as a reference.
EIGEN_DEVICE_FUNC IsometryTransformType operator*(const RotationBase< Derived, Dim > &r) const
EIGEN_DEVICE_FUNC Translation(const Scalar &sx, const Scalar &sy, const Scalar &sz)
Translation< double, 2 > Translation2d
Matrix< Scalar, Dim, 1 > VectorType
EIGEN_DEVICE_FUNC Scalar & x()
Returns the x-translation as a reference.
friend EIGEN_DEVICE_FUNC AffineTransformType operator*(const EigenBase< OtherDerived > &linear, const Translation &t)
EIGEN_DEVICE_FUNC Derived & derived()
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC Translation(const Translation< OtherScalarType, Dim > &other)