#include <RigidTypes.h>

Public Types | |
| enum | { static_size = 2 } |
| typedef real | value_type |
| typedef real | Real |
| typedef Vec< 2, Real > | Vec2 |
Public Member Functions | |
| RigidCoord (const Vec2 &posCenter, const Real &orient) | |
| RigidCoord () | |
| void | clear () |
| void | operator+= (const RigidDeriv< 2, real > &a) |
| RigidCoord< 2, real > | operator+ (const RigidDeriv< 2, real > &a) const |
| RigidCoord< 2, real > | operator- (const RigidCoord< 2, real > &a) const |
| void | operator+= (const RigidCoord< 2, real > &a) |
| template<typename real2 > | |
| void | operator*= (real2 a) |
| template<typename real2 > | |
| RigidCoord< 2, real > | operator* (real2 a) const |
| Real | operator* (const RigidCoord< 2, real > &a) const |
| dot product, mostly used to compute residuals as sqrt(x*x) | |
| real | norm2 () const |
| Squared norm. | |
| real | norm () const |
| Euclidean norm. | |
| Vec2 & | getCenter () |
| Real & | getOrientation () |
| const Vec2 & | getCenter () const |
| const Real & | getOrientation () const |
| Vec2 | rotate (const Vec2 &v) const |
| Vec2 | inverseRotate (const Vec2 &v) const |
| void | multRight (const RigidCoord< 2, real > &c) |
| Apply a transformation with respect to itself. | |
| RigidCoord< 2, real > | mult (const RigidCoord< 2, real > &c) const |
| compute the product with another frame on the right | |
| template<class Mat > | |
| void | writeRotationMatrix (Mat &m) const |
| template<class Mat > | |
| void | fromMatrix (const Mat &m) const |
| Set from the given matrix. | |
| template<class Mat > | |
| void | toMatrix (Mat &m) const |
| Write to the given matrix. | |
| void | writeOpenGlMatrix (float m[16]) const |
| Write the OpenGL transformation matrix. | |
| Vec2 | vectorToChild (const Vec2 &v) const |
| compute the projection of a vector from the parent frame to the child | |
| real * | ptr () |
| const real * | ptr () const |
| real & | operator[] (int i) |
| Access to i-th element. | |
| const real & | operator[] (int i) const |
| Const access to i-th element. | |
Static Public Member Functions | |
| static RigidCoord< 2, real > | identity () |
| static int | max_size () |
| static unsigned int | size () |
Private Attributes | |
| Vec2 | center |
| Real | orientation |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const RigidCoord< 2, real > &v) |
| write to an output stream | |
| std::istream & | operator>> (std::istream &in, RigidCoord< 2, real > &v) |
| read from an input stream | |
Definition at line 783 of file RigidTypes.h.
| typedef real sofa::defaulttype::RigidCoord< 2, real >::Real |
Definition at line 787 of file RigidTypes.h.
| typedef real sofa::defaulttype::RigidCoord< 2, real >::value_type |
Definition at line 786 of file RigidTypes.h.
Definition at line 788 of file RigidTypes.h.
| anonymous enum |
| sofa::defaulttype::RigidCoord< 2, real >::RigidCoord | ( | const Vec2 & | posCenter, | |
| const Real & | orient | |||
| ) | [inline] |
Definition at line 793 of file RigidTypes.h.
| sofa::defaulttype::RigidCoord< 2, real >::RigidCoord | ( | ) | [inline] |
| void sofa::defaulttype::RigidCoord< 2, real >::clear | ( | ) | [inline] |
Definition at line 797 of file RigidTypes.h.
| void sofa::defaulttype::RigidCoord< 2, real >::fromMatrix | ( | const Mat & | m | ) | const [inline] |
| const Vec2& sofa::defaulttype::RigidCoord< 2, real >::getCenter | ( | ) | const [inline] |
Definition at line 862 of file RigidTypes.h.
| Vec2& sofa::defaulttype::RigidCoord< 2, real >::getCenter | ( | ) | [inline] |
Definition at line 860 of file RigidTypes.h.
Referenced by multRight(), operator+=(), and operator-().
| const Real& sofa::defaulttype::RigidCoord< 2, real >::getOrientation | ( | void | ) | const [inline] |
Definition at line 863 of file RigidTypes.h.
| Real& sofa::defaulttype::RigidCoord< 2, real >::getOrientation | ( | void | ) | [inline] |
| static RigidCoord<2,real> sofa::defaulttype::RigidCoord< 2, real >::identity | ( | ) | [inline, static] |
Definition at line 880 of file RigidTypes.h.
| Vec2 sofa::defaulttype::RigidCoord< 2, real >::inverseRotate | ( | const Vec2 & | v | ) | const [inline] |
Definition at line 872 of file RigidTypes.h.
| static int sofa::defaulttype::RigidCoord< 2, real >::max_size | ( | ) | [inline, static] |
Definition at line 968 of file RigidTypes.h.
| RigidCoord<2,real> sofa::defaulttype::RigidCoord< 2, real >::mult | ( | const RigidCoord< 2, real > & | c | ) | const [inline] |
compute the product with another frame on the right
Definition at line 894 of file RigidTypes.h.
References center, getOrientation(), and orientation.
| void sofa::defaulttype::RigidCoord< 2, real >::multRight | ( | const RigidCoord< 2, real > & | c | ) | [inline] |
Apply a transformation with respect to itself.
Definition at line 887 of file RigidTypes.h.
References getCenter(), and getOrientation().
| real sofa::defaulttype::RigidCoord< 2, real >::norm | ( | ) | const [inline] |
Euclidean norm.
Definition at line 855 of file RigidTypes.h.
References norm2(), and sofa::helper::rsqrt().
| real sofa::defaulttype::RigidCoord< 2, real >::norm2 | ( | ) | const [inline] |
| Real sofa::defaulttype::RigidCoord< 2, real >::operator* | ( | const RigidCoord< 2, real > & | a | ) | const [inline] |
dot product, mostly used to compute residuals as sqrt(x*x)
Definition at line 842 of file RigidTypes.h.
References center, and orientation.
| RigidCoord<2,real> sofa::defaulttype::RigidCoord< 2, real >::operator* | ( | real2 | a | ) | const [inline] |
Definition at line 834 of file RigidTypes.h.
| void sofa::defaulttype::RigidCoord< 2, real >::operator*= | ( | real2 | a | ) | [inline] |
Definition at line 826 of file RigidTypes.h.
| RigidCoord<2,real> sofa::defaulttype::RigidCoord< 2, real >::operator+ | ( | const RigidDeriv< 2, real > & | a | ) | const [inline] |
Definition at line 805 of file RigidTypes.h.
References center, sofa::defaulttype::RigidDeriv< 2, real >::getVCenter(), sofa::defaulttype::RigidDeriv< 2, real >::getVOrientation(), and orientation.
| void sofa::defaulttype::RigidCoord< 2, real >::operator+= | ( | const RigidCoord< 2, real > & | a | ) | [inline] |
| void sofa::defaulttype::RigidCoord< 2, real >::operator+= | ( | const RigidDeriv< 2, real > & | a | ) | [inline] |
Definition at line 799 of file RigidTypes.h.
References sofa::defaulttype::RigidDeriv< 2, real >::getVCenter(), and sofa::defaulttype::RigidDeriv< 2, real >::getVOrientation().
| RigidCoord<2,real> sofa::defaulttype::RigidCoord< 2, real >::operator- | ( | const RigidCoord< 2, real > & | a | ) | const [inline] |
| const real& sofa::defaulttype::RigidCoord< 2, real >::operator[] | ( | int | i | ) | const [inline] |
| real& sofa::defaulttype::RigidCoord< 2, real >::operator[] | ( | int | i | ) | [inline] |
| const real* sofa::defaulttype::RigidCoord< 2, real >::ptr | ( | ) | const [inline] |
Definition at line 976 of file RigidTypes.h.
| real* sofa::defaulttype::RigidCoord< 2, real >::ptr | ( | ) | [inline] |
Definition at line 975 of file RigidTypes.h.
| Vec2 sofa::defaulttype::RigidCoord< 2, real >::rotate | ( | const Vec2 & | v | ) | const [inline] |
Definition at line 865 of file RigidTypes.h.
| static unsigned int sofa::defaulttype::RigidCoord< 2, real >::size | ( | void | ) | [inline, static] |
Definition at line 978 of file RigidTypes.h.
| void sofa::defaulttype::RigidCoord< 2, real >::toMatrix | ( | Mat & | m | ) | const [inline] |
Write to the given matrix.
Definition at line 920 of file RigidTypes.h.
References sofa::defaulttype::Mat< L, C, real >::identity().
| Vec2 sofa::defaulttype::RigidCoord< 2, real >::vectorToChild | ( | const Vec2 & | v | ) | const [inline] |
compute the projection of a vector from the parent frame to the child
Definition at line 951 of file RigidTypes.h.
| void sofa::defaulttype::RigidCoord< 2, real >::writeOpenGlMatrix | ( | float | m[16] | ) | const [inline] |
| void sofa::defaulttype::RigidCoord< 2, real >::writeRotationMatrix | ( | Mat & | m | ) | const [inline] |
Definition at line 903 of file RigidTypes.h.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const RigidCoord< 2, real > & | v | |||
| ) | [friend] |
| std::istream& operator>> | ( | std::istream & | in, | |
| RigidCoord< 2, real > & | v | |||
| ) | [friend] |
Real sofa::defaulttype::RigidCoord< 2, real >::orientation [private] |
Definition at line 791 of file RigidTypes.h.
Referenced by mult(), operator*(), operator+(), and operator-().
1.5.7.1