10 #ifndef EIGEN_ROTATIONBASE_H 11 #define EIGEN_ROTATIONBASE_H 17 template<
typename RotationDerived,
typename MatrixType,
bool IsVector=MatrixType::IsVectorAtCompileTime>
28 template<
typename Derived,
int _Dim>
69 template<
typename OtherDerived>
75 template<
typename OtherDerived>
friend 77 {
return l.
derived() * r.toRotationMatrix(); }
83 res.
linear().applyOnTheLeft(l);
88 template<
int Mode,
int Options>
92 template<
typename OtherVectorType>
100 template<
typename RotationDerived,
typename MatrixType>
103 enum { Dim = RotationDerived::Dim };
106 {
return r.toRotationMatrix() *
m; }
109 template<
typename RotationDerived,
typename Scalar,
int Dim,
int MaxDim>
121 template<
typename RotationDerived,
typename OtherVectorType>
124 enum { Dim = RotationDerived::Dim };
128 return r._transformVector(v);
138 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Storage,
int _MaxRows,
int _MaxCols>
139 template<
typename OtherDerived>
151 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Storage,
int _MaxRows,
int _MaxCols>
152 template<
typename OtherDerived>
181 template<
typename Scalar,
int Dim>
188 template<
typename Scalar,
int Dim,
typename OtherDerived>
194 template<
typename Scalar,
int Dim,
typename OtherDerived>
197 EIGEN_STATIC_ASSERT(OtherDerived::RowsAtCompileTime==Dim && OtherDerived::ColsAtCompileTime==Dim,
198 YOU_MADE_A_PROGRAMMING_MISTAKE)
206 #endif // EIGEN_ROTATIONBASE_H
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Isometry > operator*(const Translation< Scalar, Dim > &t) const
#define EIGEN_STRONG_INLINE
Matrix< Scalar, Dim, 1 > VectorType
EIGEN_DEVICE_FUNC Derived & derived()
Matrix< Scalar, Dim, Dim > RotationMatrixType
Represents a diagonal matrix with its storage.
Namespace containing all symbols from the Eigen library.
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
EIGEN_DEVICE_FUNC Derived inverse() const
Transform< Scalar, Dim, Affine > ReturnType
EIGEN_DEVICE_FUNC Transform< Scalar, Dim, Mode > operator*(const Transform< Scalar, Dim, Mode, Options > &t) const
Represents a translation transformation.
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
static const Line3 l(Rot3(), 1, 1)
static EIGEN_DEVICE_FUNC ReturnType run(const RotationDerived &r, const DiagonalMatrix< Scalar, Dim, MaxDim > &m)
friend EIGEN_DEVICE_FUNC RotationMatrixType operator*(const EigenBase< OtherDerived > &l, const Derived &r)
static EIGEN_DEVICE_FUNC Matrix< Scalar, 2, 2 > toRotationMatrix(const Scalar &s)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix()
Default constructor.
EIGEN_DEVICE_FUNC const Derived & derived() const
#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(TYPE, ROWS, COLS)
Array< int, Dynamic, 1 > v
Common base class for compact rotation representations.
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ReturnType run(const RotationDerived &r, const OtherVectorType &v)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EIGEN_DEVICE_FUNC VectorType _transformVector(const OtherVectorType &v) const
Matrix< typename RotationDerived::Scalar, Dim, Dim > ReturnType
EIGEN_DEVICE_FUNC RotationMatrixType toRotationMatrix() const
internal::traits< Derived >::Scalar Scalar
#define EIGEN_DEVICE_FUNC
Represents a rotation/orientation in a 2 dimensional space.
Matrix< typename RotationDerived::Scalar, Dim, 1 > ReturnType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector< Derived, OtherDerived, OtherDerived::IsVectorAtCompileTime >::ReturnType operator*(const EigenBase< OtherDerived > &e) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix & operator=(const Matrix &other)
Assigns matrices to each other.
static EIGEN_DEVICE_FUNC ReturnType run(const RotationDerived &r, const MatrixType &m)
EIGEN_DEVICE_FUNC RotationMatrixType operator*(const UniformScaling< Scalar > &s) const
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC friend Transform< Scalar, Dim, Affine > operator*(const DiagonalMatrix< Scalar, Dim > &l, const Derived &r)
EIGEN_DEVICE_FUNC Derived & derived()
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC RotationMatrixType matrix() const