AnimaL |
Tutorial |
Documentation |
#include <rotation2d.h>
Definition at line 30 of file rotation2d.h.
Constructors/Destructors | |
Rotation2d () | |
Default constructor: does nothing. | |
Rotation2d (const Real angle) | |
Define angle. | |
Rotation2d | identity () |
Identity. | |
Public Types | |
Typedefs | |
typedef TraitsT | Traits |
Type used for class customization. | |
typedef RealT | Real |
Floating point type. | |
Public Member Functions | |
Value | |
Real | angle () const |
Get angle. | |
Rotation2d & | setAngle (const Real angle) |
Set angle. | |
Rotation2d | inverse () const |
Get the inverse. | |
Rotation2d | operator * (const Real u) const |
Interpolate. | |
Combination of rotations | |
Rotation2d | operator * (const Rotation2d &r) const |
Product. | |
Rotation2d & | operator *= (const Rotation2d &r) |
In-place product. | |
Rotation2d | operator/ (const Rotation2d &r) const |
Division (product with the inverse). | |
Rotation2d & | operator/= (const Rotation2d &r) |
In-place division (product with the inverse). | |
Static Public Member Functions | |
Time integration | |
template<class RotationVelocity> Rotation2d | eulerIncrement (const RotationVelocity &omega, const double h) |
Euler step. | |
Private Member Functions | |
Rotation2d (const Real xx, const Real xy, const Real yx, const Real yy) | |
A private constructor. | |
Private Attributes | |
Array< 2, Array< 2, Real > > | _matrix |
The value. | |
Friends | |
Apply to vectors | |
template<class R, class T, class Vector> Vector | operator * (const Vector &, const Rotation2d< R, T > &) |
Apply rotation to a vector. | |
template<class R, class T, class Vector> Vector & | operator *= (Vector &, const Rotation2d< R, T > &) |
Apply rotation to a vector. | |
template<class R, class T, class Vector> Vector | operator/ (const Vector &, const Rotation2d< R, T > &) |
Apply inverse rotation to a vector. | |
template<class R, class T, class Vector> Vector & | operator/= (Vector &, const Rotation2d< R, T > &) |
Apply inverse rotation to a vector. | |
Input/Output | |
template<class R, class T> std::istream & | operator>> (std::istream &, Rotation2d< R, T > &) |
Input. | |
template<class R, class T> std::ostream & | operator<< (std::ostream &, const Rotation2d< R, T > &) |
Output. |
|
Floating point type.
Definition at line 41 of file rotation2d.h. |
|
Type used for class customization.
Definition at line 38 of file rotation2d.h. |
|
Default constructor: does nothing.
Definition at line 49 of file rotation2d.h. Referenced by animal::Rotation2d< RealT, TraitsT >::eulerIncrement(), animal::Rotation2d< RealT, TraitsT >::identity(), animal::Rotation2d< RealT, TraitsT >::inverse(), animal::Rotation2d< RealT, TraitsT >::operator *(), animal::Rotation2d< RealT, TraitsT >::operator *=(), animal::Rotation2d< RealT, TraitsT >::operator/(), and animal::Rotation2d< RealT, TraitsT >::operator/=(). |
|
Define angle.
Definition at line 52 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix. |
|
A private constructor.
Definition at line 213 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix. |
|
Get angle.
Definition at line 69 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix. Referenced by animal::Rotation2d< RealT, TraitsT >::operator *(), and animal::operator<<(). |
|
Euler step.
Definition at line 166 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Identity.
Definition at line 61 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Get the inverse.
Definition at line 90 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix, and animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Product.
Definition at line 114 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix, and animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Interpolate.
Definition at line 99 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::angle(). |
|
In-place product.
Definition at line 125 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix, and animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Division (product with the inverse).
Definition at line 137 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix, and animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
In-place division (product with the inverse).
Definition at line 148 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix, and animal::Rotation2d< RealT, TraitsT >::Rotation2d(). |
|
Set angle.
Definition at line 80 of file rotation2d.h. References animal::Rotation2d< RealT, TraitsT >::_matrix. Referenced by animal::operator>>(). |
|
Apply rotation to a vector.
Definition at line 264 of file rotation2d.h. |
|
Apply rotation to a vector.
Definition at line 278 of file rotation2d.h. |
|
Apply inverse rotation to a vector.
Definition at line 235 of file rotation2d.h. |
|
Apply inverse rotation to a vector.
Definition at line 249 of file rotation2d.h. |
|
Output.
Definition at line 305 of file rotation2d.h. |
|
Input.
Definition at line 292 of file rotation2d.h. |
|