24 template<
typename Derived,
int _Dim>
35 inline const Derived& derived()
const {
return *
static_cast<const Derived*
>(
this); }
36 inline Derived& derived() {
return *
static_cast<Derived*
>(
this); }
39 inline RotationMatrixType
toRotationMatrix()
const {
return derived().toRotationMatrix(); }
42 inline Derived
inverse()
const {
return derived().inverse(); }
61 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Storage,
int _MaxRows,
int _MaxCols>
62 template<
typename OtherDerived>
66 EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(
Matrix,
int(OtherDerived::Dim),
int(OtherDerived::Dim))
67 *
this = r.toRotationMatrix();
74 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Storage,
int _MaxRows,
int _MaxCols>
75 template<
typename OtherDerived>
80 EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(
Matrix,
int(OtherDerived::Dim),
int(OtherDerived::Dim))
81 return *
this = r.toRotationMatrix();
102 template<
typename Scalar,
int Dim>
105 EIGEN_STATIC_ASSERT(Dim==2,YOU_MADE_A_PROGRAMMING_MISTAKE)
109 template<
typename Scalar,
int Dim,
typename OtherDerived>
112 return r.toRotationMatrix();
115 template<
typename Scalar,
int Dim,
typename OtherDerived>
118 EIGEN_STATIC_ASSERT(OtherDerived::RowsAtCompileTime==Dim && OtherDerived::ColsAtCompileTime==Dim,
119 YOU_MADE_A_PROGRAMMING_MISTAKE)
Matrix< Scalar, Dim, Dim > RotationMatrixType
corresponding linear transformation matrix type
Definition: RotationBase.h:33
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Transform< Scalar, Dim > operator*(const Translation< Scalar, Dim > &t) const
Definition: RotationBase.h:45
RotationMatrixType toRotationMatrix() const
Definition: RotationBase.h:39
Transform< Scalar, Dim > operator*(const Transform< Scalar, Dim > &t) const
Definition: RotationBase.h:53
Definition: ForwardDeclarations.h:236
ei_traits< Derived >::Scalar Scalar
the scalar type of the coefficients
Definition: RotationBase.h:30
EIGEN_STRONG_INLINE Matrix()
Default constructor.
Definition: Matrix.h:203
Common base class for compact rotation representations.
Definition: ForwardDeclarations.h:231
RotationMatrixType operator*(const Scaling< Scalar, Dim > &s) const
Definition: RotationBase.h:49
Definition: ForwardDeclarations.h:234
EIGEN_STRONG_INLINE Matrix & operator=(const Matrix &other)
Assigns matrices to each other.
Definition: Matrix.h:154
Derived inverse() const
Definition: RotationBase.h:42
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:127
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48