10 #ifndef EIGEN_ROTATION2D_H    11 #define EIGEN_ROTATION2D_H    40 template<
typename _Scalar>
    47   using Base::operator*;
    65   inline Scalar 
angle()
 const { 
return m_angle; }
    68   inline Scalar& 
angle() { 
return m_angle; }
    75   { 
return m_angle + other.
m_angle; }
    79   { m_angle += other.
m_angle; 
return *
this; }
    85   template<
typename Derived>
    93   { 
return m_angle * (1-t) + other.
angle() * t; }
   100   template<
typename NewScalarType>
   105   template<
typename OtherScalarType>
   108     m_angle = Scalar(other.
angle());
   132 template<
typename Scalar>
   133 template<
typename Derived>
   137   EIGEN_STATIC_ASSERT(Derived::RowsAtCompileTime==2 && Derived::ColsAtCompileTime==2,YOU_MADE_A_PROGRAMMING_MISTAKE)
   138   m_angle = atan2(mat.coeff(1,0), mat.coeff(0,0));
   144 template<
typename Scalar>
   150   Scalar sinA = 
sin(m_angle);
   151   Scalar cosA = 
cos(m_angle);
   152   return (Matrix2() << cosA, -sinA, sinA, cosA).finished();
   157 #endif // EIGEN_ROTATION2D_H internal::cast_return_type< Rotation2D, Rotation2D< NewScalarType > >::type cast() const 
static Matrix< Scalar, 2, 2 > toRotationMatrix(const Scalar &s)
Rotation2D & fromRotationMatrix(const MatrixBase< Derived > &m)
Rotation2D slerp(const Scalar &t, const Rotation2D &other) const 
RotationBase< Rotation2D< _Scalar >, 2 > Base
Rotation2D(const Scalar &a)
Rotation2D(const Rotation2D< OtherScalarType > &other)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
const internal::permut_matrix_product_retval< PermutationDerived, Derived, OnTheRight > operator*(const MatrixBase< Derived > &matrix, const PermutationBase< PermutationDerived > &permutation)
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
static Rotation2D Identity()
bool isApprox(const Rotation2D &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const 
bool isApprox(const Scalar &x, const Scalar &y, typename NumTraits< Scalar >::Real precision=NumTraits< Scalar >::dummy_precision())
Common base class for compact rotation representations. 
Rotation2D operator*(const Rotation2D &other) const 
const CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > sin() const 
Matrix2 toRotationMatrix(void) const 
Rotation2D inverse() const 
Matrix< Scalar, 2, 2 > Matrix2
Rotation2D & operator*=(const Rotation2D &other)
Represents a rotation/orientation in a 2 dimensional space. 
const CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > cos() const 
Matrix< Scalar, 2, 1 > Vector2
Rotation2D< float > Rotation2Df
The matrix class, also used for vectors and row-vectors. 
Base class for all dense matrices, vectors, and expressions. 
Rotation2D< double > Rotation2Dd