Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Inertia Class Reference

Donne le vecteur correspondant a la moyenne de deplacement donnée par longeur de cycl donnée. More...

#include <Inertia.h>

List of all members.

Public Member Functions

 Inertia ()
void Start (double _viewTime=0.5, double _inertiaTime=0.1)
void Add (Point2D< int > element)
Point2D< double > GetMoyValue ()


Detailed Description

Donne le vecteur correspondant a la moyenne de deplacement donnée par longeur de cycl donnée.

Remarque :

Principe de distrubution:

Ex.:

Inertia<int,double> inertia; int moy; inertia.Start(5,10); // 5sec ... inertia.Add(2); ... inertia.Add(5); ... moy=GetMoyValue();

Definition at line 72 of file Inertia.h.


Constructor & Destructor Documentation

Inertia::Inertia  ) 
 

Definition at line 25 of file Inertia.cpp.


Member Function Documentation

void Inertia::Add Point2D< int >  element  ) 
 

Definition at line 38 of file Inertia.cpp.

References ElemStack::elem, Timer::GetDeltaTime(), MyStack< ElemStack >::Push(), and ElemStack::timing.

Referenced by Control::OnMouseMove().

Point2D< double > Inertia::GetMoyValue  ) 
 

Definition at line 46 of file Inertia.cpp.

References ElemStack::elem, MyStack< ElemStack >::FrontPeek(), MyStack< ElemStack >::FrontPop(), Timer::GetDeltaTime(), MyListIterator< ElemStack >::GetElem(), MyList< ElemStack >::GetNbElem(), MyList< ElemStack >::i, MyListIterator< ElemStack >::More(), ElemStack::timing, Point2D< int >::x, Point2D< T >::x, Point2D< int >::y, and Point2D< T >::y.

void Inertia::Start double  _viewTime = 0.5,
double  _inertiaTime = 0.1
 

Definition at line 31 of file Inertia.cpp.

References Timer::GetDeltaTime().

Referenced by ControlEngine::Start().


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 19:21:23 2004 for 3d Controls by doxygen 1.3.6