List of all members.
Public Types |
enum | { Dim = 2
} |
enum | { Dim = 2
} |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, 2, 1 > | Vector2 |
typedef Matrix< Scalar, 2, 2 > | Matrix2 |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, 2, 1 > | Vector2 |
typedef Matrix< Scalar, 2, 2 > | Matrix2 |
Public Member Functions |
| Rotation2D (Scalar a) |
Scalar | angle () const |
Scalar & | angle () |
Rotation2D | inverse () const |
Rotation2D | operator* (const Rotation2D &other) const |
Rotation2D & | operator*= (const Rotation2D &other) |
Vector2 | operator* (const Vector2 &vec) const |
template<typename Derived > |
Rotation2D & | fromRotationMatrix (const MatrixBase< Derived > &m) |
Matrix2 | toRotationMatrix (void) const |
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) |
bool | isApprox (const Rotation2D &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
| Rotation2D (Scalar a) |
Scalar | angle () const |
Scalar & | angle () |
Rotation2D | inverse () const |
Rotation2D | operator* (const Rotation2D &other) const |
Rotation2D & | operator*= (const Rotation2D &other) |
Vector2 | operator* (const Vector2 &vec) const |
template<typename Derived > |
Rotation2D & | fromRotationMatrix (const MatrixBase< Derived > &m) |
Matrix2 | toRotationMatrix (void) const |
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) |
bool | isApprox (const Rotation2D &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
Static Public Member Functions |
static Rotation2D | Identity () |
Protected Attributes |
Scalar | m_angle |
Detailed Description
template<typename _Scalar>
class Rotation2D< _Scalar >
Represents a rotation/orientation in a 2 dimensional space.
- Parameters:
-
| _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.
- See also:
- class Quaternion, class Transform
Member Typedef Documentation
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
Member Enumeration Documentation
template<typename _Scalar>
template<typename _Scalar>
Constructor & Destructor Documentation
template<typename _Scalar>
Construct a 2D counter clock wise rotation from the angle a in radian.
template<typename _Scalar>
template<typename OtherScalarType >
Copy constructor with scalar type conversion
template<typename _Scalar>
Construct a 2D counter clock wise rotation from the angle a in radian.
template<typename _Scalar>
template<typename OtherScalarType >
Copy constructor with scalar type conversion
Member Function Documentation
template<typename _Scalar>
- Returns:
- the rotation angle
template<typename _Scalar>
- Returns:
- a read-write reference to the rotation angle
template<typename _Scalar>
- Returns:
- the rotation angle
template<typename _Scalar>
- Returns:
- a read-write reference to the rotation angle
template<typename _Scalar>
template<typename NewScalarType >
- Returns:
*this
with scalar type casted to NewScalarType
Note that if NewScalarType is equal to the current scalar type of *this
then this function smartly returns a const reference to *this
.
template<typename _Scalar>
template<typename NewScalarType >
- Returns:
*this
with scalar type casted to NewScalarType
Note that if NewScalarType is equal to the current scalar type of *this
then this function smartly returns a const reference to *this
.
template<typename _Scalar>
template<typename Derived >
template<typename Scalar >
template<typename Derived >
Set *this
from a 2x2 rotation matrix mat. In other words, this function extract the rotation angle from the rotation matrix.
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
template<typename _Scalar>
- Returns:
true
if *this
is approximately equal to other, within the precision determined by prec.
- See also:
- MatrixBase::isApprox()
template<typename _Scalar>
- Returns:
true
if *this
is approximately equal to other, within the precision determined by prec.
- See also:
- MatrixBase::isApprox()
template<typename _Scalar>
Applies the rotation to a 2D vector
template<typename _Scalar>
Concatenates two rotations
template<typename _Scalar>
Applies the rotation to a 2D vector
template<typename _Scalar>
Concatenates two rotations
template<typename _Scalar>
Concatenates two rotations
template<typename _Scalar>
Concatenates two rotations
template<typename _Scalar>
- Returns:
- the spherical interpolation between
*this
and other using parameter t. It is in fact equivalent to a linear interpolation.
template<typename _Scalar>
- Returns:
- the spherical interpolation between
*this
and other using parameter t. It is in fact equivalent to a linear interpolation.
template<typename Scalar >
template<typename _Scalar>
Member Data Documentation
template<typename _Scalar>
The documentation for this class was generated from the following files:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/ntk/geometry/Eigen/src/Eigen2Support/Geometry/Rotation2D.h
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/ntk/geometry/Eigen/src/Geometry/Rotation2D.h