|
|
/*************************************************************************** vim:tabstop=4 mecanique.h - description ------------------- begin : Sun Jul 1 2001 copyright : (C) 2001 by Francois Biot email : fbiot@free.fr ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _mecanique_ #define _mecanique_ #include "vect.h" class vitesse : public vect { public: vitesse() : vect(){}; vitesse(float x,float y,float z) : vect(x,y,z) {}; vitesse operator +(const vitesse&) const; }; class progression { public: vect deltapos; vect deltavitesse; friend ostream& operator << (ostream&,const progression &); }; class acceleration : public vect { public: acceleration() : vect(0.0,-9.81,0.0) {}; acceleration(float x,float y,float z) : vect(x,y,z) {}; progression Progression(float dt,vitesse &v); }; #endif
Generated by: saturn on FrancoisLinux on Sun Feb 3 20:01:44 2002, using kdoc 2.0a53. |