Go to the documentation of this file.
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
115 res.matrix().setZero();
118 res.matrix().row(
Dim).setZero();
124 template<
int Mode,
int Options>
133 template<
typename Derived>
136 {
return m_coeffs + vec.derived(); }
148 template<
typename NewScalarType>
153 template<
typename OtherScalarType>
174 template<
typename Scalar,
int Dim>
179 res.matrix().setZero();
180 res.linear().diagonal().fill(
other.factor());
181 res.translation() = m_coeffs;
186 template<
typename Scalar,
int Dim>
187 template<
typename OtherDerived>
192 res.matrix().setZero();
194 res.translation() = m_coeffs;
195 res.matrix().row(Dim).setZero();
202 #endif // EIGEN_TRANSLATION_H
Translation< double, 2 > Translation2d
#define EIGEN_DEVICE_FUNC
Translation< float, 3 > Translation3f
Namespace containing all symbols from the Eigen library.
friend EIGEN_DEVICE_FUNC AffineTransformType operator*(const EigenBase< OtherDerived > &linear, const Translation &t)
EIGEN_DEVICE_FUNC Derived & derived()
EIGEN_DEVICE_FUNC bool isApprox(const Translation &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC Translation()
Translation< float, 2 > Translation2f
Transform< Scalar, Dim, Isometry > IsometryTransformType
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC Scalar & x()
Returns the x-translation as a reference.
EIGEN_DEVICE_FUNC Translation(const Translation< OtherScalarType, Dim > &other)
const EIGEN_DEVICE_FUNC VectorType & translation() const
Matrix< Scalar, Dim, 1 > VectorType
Common base class for compact rotation representations.
EIGEN_DEVICE_FUNC Translation(const Scalar &sx, const Scalar &sy)
EIGEN_DEVICE_FUNC VectorType & vector()
Matrix< Scalar, Dim, Dim > LinearMatrixType
EIGEN_DEVICE_FUNC Scalar & z()
Returns the z-translation as a reference.
Translation< double, 3 > Translation3d
EIGEN_DEVICE_FUNC Translation operator*(const Translation &other) const
const EIGEN_DEVICE_FUNC VectorType & vector() const
EIGEN_DEVICE_FUNC Scalar & y()
Returns the y-translation as a reference.
EIGEN_DEVICE_FUNC VectorType & translation()
EIGEN_DEVICE_FUNC internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type cast() const
Transform< Scalar, Dim, Affine > AffineTransformType
EIGEN_DEVICE_FUNC Translation(const Scalar &sx, const Scalar &sy, const Scalar &sz)
Represents a translation transformation.
Base class for all dense matrices, vectors, and expressions.
static const Translation Identity()
EIGEN_DEVICE_FUNC Translation(const VectorType &vector)
EIGEN_DEVICE_FUNC Scalar x() const
Returns the x-translation by value.
Translation inverse() const
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
EIGEN_DEVICE_FUNC Scalar y() const
Returns the y-translation by value.
EIGEN_DEVICE_FUNC Scalar z() const
Returns the z-translation by value.
EIGEN_DEVICE_FUNC IsometryTransformType operator*(const RotationBase< Derived, Dim > &r) const
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:42:32