sofa::defaulttype::RigidDeriv< 2, real > Class Template Reference

#include <RigidTypes.h>

Collaboration diagram for sofa::defaulttype::RigidDeriv< 2, real >:

Collaboration graph
[legend]

Public Types

enum  { static_size = 2 }
typedef real value_type
typedef real Real
typedef Vec< 2, Real > Vec2

Public Member Functions

 RigidDeriv (const Vec2 &velCenter, const Real &velOrient)
 RigidDeriv ()
void clear ()
void operator+= (const RigidDeriv< 2, real > &a)
RigidDeriv< 2, real > operator+ (const RigidDeriv< 2, real > &a) const
template<typename real2 >
void operator*= (real2 a)
RigidDeriv< 2, real > operator* (float a) const
RigidDeriv< 2, real > operator* (double a) const
RigidDeriv< 2, real > operator- () const
Real operator* (const RigidDeriv< 2, real > &a) const
 dot product, mostly used to compute residuals as sqrt(x*x)
Vec2 & getVCenter (void)
Real & getVOrientation (void)
const Vec2 & getVCenter (void) const
const Real & getVOrientation (void) const
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 unsigned int size ()

Private Attributes

Vec2 vCenter
Real vOrientation

Friends

class RigidCoord< 2, real >
std::ostream & operator<< (std::ostream &out, const RigidDeriv< 2, real > &v)
 write to an output stream
std::istream & operator>> (std::istream &in, RigidDeriv< 2, real > &v)
 read from an input stream

Detailed Description

template<typename real>
class sofa::defaulttype::RigidDeriv< 2, real >

Definition at line 674 of file RigidTypes.h.


Member Typedef Documentation

template<typename real >
typedef real sofa::defaulttype::RigidDeriv< 2, real >::Real

Definition at line 678 of file RigidTypes.h.

template<typename real >
typedef real sofa::defaulttype::RigidDeriv< 2, real >::value_type

Definition at line 677 of file RigidTypes.h.

template<typename real >
typedef Vec<2,Real> sofa::defaulttype::RigidDeriv< 2, real >::Vec2

Definition at line 679 of file RigidTypes.h.


Member Enumeration Documentation

template<typename real >
anonymous enum

Enumerator:
static_size 

Definition at line 756 of file RigidTypes.h.


Constructor & Destructor Documentation

template<typename real >
sofa::defaulttype::RigidDeriv< 2, real >::RigidDeriv ( const Vec2 &  velCenter,
const Real &  velOrient 
) [inline]

Definition at line 686 of file RigidTypes.h.

template<typename real >
sofa::defaulttype::RigidDeriv< 2, real >::RigidDeriv (  )  [inline]

Definition at line 688 of file RigidTypes.h.

References sofa::component::clear().


Member Function Documentation

template<typename real >
void sofa::defaulttype::RigidDeriv< 2, real >::clear (  )  [inline]

Definition at line 690 of file RigidTypes.h.

template<typename real >
const Vec2& sofa::defaulttype::RigidDeriv< 2, real >::getVCenter ( void   )  const [inline]

Definition at line 741 of file RigidTypes.h.

template<typename real >
Vec2& sofa::defaulttype::RigidDeriv< 2, real >::getVCenter ( void   )  [inline]

template<typename real >
const Real& sofa::defaulttype::RigidDeriv< 2, real >::getVOrientation ( void   )  const [inline]

Definition at line 742 of file RigidTypes.h.

template<typename real >
Real& sofa::defaulttype::RigidDeriv< 2, real >::getVOrientation ( void   )  [inline]

template<typename real >
Real sofa::defaulttype::RigidDeriv< 2, real >::operator* ( const RigidDeriv< 2, real > &  a  )  const [inline]

dot product, mostly used to compute residuals as sqrt(x*x)

Definition at line 733 of file RigidTypes.h.

References vCenter, and vOrientation.

template<typename real >
RigidDeriv<2,real> sofa::defaulttype::RigidDeriv< 2, real >::operator* ( double  a  )  const [inline]

Definition at line 720 of file RigidTypes.h.

template<typename real >
RigidDeriv<2,real> sofa::defaulttype::RigidDeriv< 2, real >::operator* ( float  a  )  const [inline]

Definition at line 713 of file RigidTypes.h.

template<typename real >
template<typename real2 >
void sofa::defaulttype::RigidDeriv< 2, real >::operator*= ( real2  a  )  [inline]

Definition at line 707 of file RigidTypes.h.

template<typename real >
RigidDeriv<2,real> sofa::defaulttype::RigidDeriv< 2, real >::operator+ ( const RigidDeriv< 2, real > &  a  )  const [inline]

Definition at line 698 of file RigidTypes.h.

References vCenter, and vOrientation.

template<typename real >
void sofa::defaulttype::RigidDeriv< 2, real >::operator+= ( const RigidDeriv< 2, real > &  a  )  [inline]

Definition at line 692 of file RigidTypes.h.

References vCenter, and vOrientation.

template<typename real >
RigidDeriv<2,real> sofa::defaulttype::RigidDeriv< 2, real >::operator- (  )  const [inline]

Definition at line 727 of file RigidTypes.h.

template<typename real >
const real& sofa::defaulttype::RigidDeriv< 2, real >::operator[] ( int  i  )  const [inline]

Const access to i-th element.

Definition at line 773 of file RigidTypes.h.

template<typename real >
real& sofa::defaulttype::RigidDeriv< 2, real >::operator[] ( int  i  )  [inline]

Access to i-th element.

Definition at line 764 of file RigidTypes.h.

template<typename real >
const real* sofa::defaulttype::RigidDeriv< 2, real >::ptr (  )  const [inline]

Definition at line 759 of file RigidTypes.h.

template<typename real >
real* sofa::defaulttype::RigidDeriv< 2, real >::ptr (  )  [inline]

Definition at line 758 of file RigidTypes.h.

template<typename real >
static unsigned int sofa::defaulttype::RigidDeriv< 2, real >::size ( void   )  [inline, static]

Definition at line 761 of file RigidTypes.h.


Friends And Related Function Documentation

template<typename real >
std::ostream& operator<< ( std::ostream &  out,
const RigidDeriv< 2, real > &  v 
) [friend]

write to an output stream

Definition at line 744 of file RigidTypes.h.

template<typename real >
std::istream& operator>> ( std::istream &  in,
RigidDeriv< 2, real > &  v 
) [friend]

read from an input stream

Definition at line 750 of file RigidTypes.h.

template<typename real >
friend class RigidCoord< 2, real > [friend]

Definition at line 684 of file RigidTypes.h.


Field Documentation

template<typename real >
Vec2 sofa::defaulttype::RigidDeriv< 2, real >::vCenter [private]

Definition at line 681 of file RigidTypes.h.

Referenced by operator*(), operator+(), and operator+=().

template<typename real >
Real sofa::defaulttype::RigidDeriv< 2, real >::vOrientation [private]

Definition at line 682 of file RigidTypes.h.

Referenced by operator*(), operator+(), and operator+=().


The documentation for this class was generated from the following file:

Generated on Sun Nov 23 04:23:54 2008 for Sofa by  doxygen 1.5.7.1