Represents a rotation/orientation in a 2 dimensional space.
| _Scalar | the scalar type, i.e., the type of the coefficients |
This class is equivalent to a single scalar representing a counter clock wise rotation as a single angle in radian. It provides some additional features such as the automatic conversion from/to a 2x2 rotation matrix. Moreover this class aims to provide a similar interface to Quaternion in order to facilitate the writing of generic algorithms dealing with rotations.

Public Types | |
| enum | { Dim = 2 } |
| typedef _Scalar | Scalar |
| the scalar type of the coefficients | |
| typedef Matrix< Scalar, 2, 1 > | Vector2 |
| typedef Matrix< Scalar, 2, 2 > | Matrix2 |
| enum | |
| typedef Matrix< Scalar, Dim, Dim > | RotationMatrixType |
| corresponding linear transformation matrix type | |
| typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
| Rotation2D (Scalar a) | |
| Construct a 2D counter clock wise rotation from the angle a in radian. | |
| Scalar | angle () const |
| Scalar & | angle () |
| Rotation2D | inverse () const |
| Rotation2D | operator* (const Rotation2D &other) const |
| Concatenates two rotations. | |
| Rotation2D & | operator*= (const Rotation2D &other) |
| Concatenates two rotations. | |
| Vector2 | operator* (const Vector2 &vec) const |
| Applies the rotation to a 2D vector. | |
| template<typename Derived > | |
| Rotation2D & | fromRotationMatrix (const MatrixBase< Derived > &m) |
Set *this from a 2x2 rotation matrix mat. | |
| Matrix2 | toRotationMatrix (void) const |
| Constructs and. | |
| Rotation2D | slerp (Scalar t, const Rotation2D &other) const |
| template<typename NewScalarType > | |
| internal::cast_return_type < Rotation2D, Rotation2D < NewScalarType > >::type | cast () const |
| template<typename OtherScalarType > | |
| Rotation2D (const Rotation2D< OtherScalarType > &other) | |
| Copy constructor with scalar type conversion. | |
| bool | isApprox (const Rotation2D &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
| const Derived & | derived () const |
| Derived & | derived () |
| RotationMatrixType | matrix () const |
| Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
| RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector < Derived, OtherDerived, OtherDerived::IsVectorAtCompileTime > ::ReturnType | operator* (const EigenBase< OtherDerived > &e) const |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| VectorType | _transformVector (const OtherVectorType &v) const |
Static Public Member Functions | |
| static Rotation2D | Identity () |
Protected Attributes | |
| Scalar | m_angle |
Private Types | |
| typedef RotationBase < Rotation2D< _Scalar >, 2 > | Base |
Friends | |
| RotationMatrixType | operator* (const EigenBase< OtherDerived > &l, const Derived &r) |
| Transform< Scalar, Dim, Affine > | operator* (const DiagonalMatrix< Scalar, Dim > &l, const Derived &r) |
typedef RotationBase<Rotation2D<_Scalar>,2> Eigen::Rotation2D::Base [private] |
| typedef Matrix<Scalar,2,2> Eigen::Rotation2D::Matrix2 |
typedef Matrix<Scalar,Dim,Dim> Eigen::RotationBase::RotationMatrixType [inherited] |
| typedef _Scalar Eigen::Rotation2D::Scalar |
the scalar type of the coefficients
Reimplemented from Eigen::RotationBase< Rotation2D< _Scalar >, 2 >.
| typedef Matrix<Scalar,2,1> Eigen::Rotation2D::Vector2 |
typedef Matrix<Scalar,Dim,1> Eigen::RotationBase::VectorType [inherited] |
| Eigen::Rotation2D::Rotation2D | ( | Scalar | a | ) | [inline] |
| Eigen::Rotation2D::Rotation2D | ( | const Rotation2D< OtherScalarType > & | other | ) | [inline, explicit] |
| VectorType Eigen::RotationBase::_transformVector | ( | const OtherVectorType & | v | ) | const [inline, inherited] |
| Scalar Eigen::Rotation2D::angle | ( | ) | const [inline] |
| Scalar& Eigen::Rotation2D::angle | ( | ) | [inline] |
| internal::cast_return_type<Rotation2D,Rotation2D<NewScalarType> >::type Eigen::Rotation2D::cast | ( | ) | const [inline] |
| const Derived& Eigen::RotationBase::derived | ( | ) | const [inline, inherited] |
| Derived& Eigen::RotationBase::derived | ( | ) | [inline, inherited] |
| Rotation2D< Scalar > & Eigen::Rotation2D::fromRotationMatrix | ( | const MatrixBase< Derived > & | mat | ) |
| static Rotation2D Eigen::Rotation2D::Identity | ( | ) | [inline, static] |
| Rotation2D Eigen::Rotation2D::inverse | ( | ) | const [inline] |
Reimplemented from Eigen::RotationBase< Rotation2D< _Scalar >, 2 >.
| bool Eigen::Rotation2D::isApprox | ( | const Rotation2D & | other, |
| typename NumTraits< Scalar >::Real | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline] |
true if *this is approximately equal to other, within the precision determined by prec.| RotationMatrixType Eigen::RotationBase::matrix | ( | ) | const [inline, inherited] |
| Transform<Scalar,Dim,Isometry> Eigen::RotationBase::operator* | ( | const Translation< Scalar, Dim > & | t | ) | const [inline, inherited] |
| RotationMatrixType Eigen::RotationBase::operator* | ( | const UniformScaling< Scalar > & | s | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector<Derived,OtherDerived,OtherDerived::IsVectorAtCompileTime>::ReturnType Eigen::RotationBase::operator* | ( | const EigenBase< OtherDerived > & | e | ) | const [inline, inherited] |
| Rotation2D Eigen::Rotation2D::operator* | ( | const Rotation2D & | other | ) | const [inline] |
| Rotation2D& Eigen::Rotation2D::operator*= | ( | const Rotation2D & | other | ) | [inline] |
| Rotation2D Eigen::Rotation2D::slerp | ( | Scalar | t, |
| const Rotation2D & | other | ||
| ) | const [inline] |
| Rotation2D< Scalar >::Matrix2 Eigen::Rotation2D::toRotationMatrix | ( | void | ) | const |
Constructs and.
Reimplemented from Eigen::RotationBase< Rotation2D< _Scalar >, 2 >.
| RotationMatrixType operator* | ( | const EigenBase< OtherDerived > & | l, |
| const Derived & | r | ||
| ) | [friend, inherited] |
| Transform<Scalar,Dim,Affine> operator* | ( | const DiagonalMatrix< Scalar, Dim > & | l, |
| const Derived & | r | ||
| ) | [friend, inherited] |
Scalar Eigen::Rotation2D::m_angle [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |