00001 // Pac.h: interface for the Pac class. 00002 // 00004 00005 #if !defined(AFX_PAC_H__65EEAA15_5429_4476_885F_AF955C54055A__INCLUDED_) 00006 #define AFX_PAC_H__65EEAA15_5429_4476_885F_AF955C54055A__INCLUDED_ 00007 00008 #include "Elastoid.h" 00009 #include "RandomController.h" 00010 00011 class Pac : public Elastoid { 00012 public: 00013 Pac(real x0, real y0); 00014 virtual ~Pac(); 00015 00017 ElasticLink* activeLink; 00018 00020 real l; 00021 00022 00023 RandomController controller; 00024 00025 virtual void controll(); 00026 00027 private: 00029 int nCircles; 00030 00032 real rPac; 00033 00034 real u0, u; 00035 00036 int index(int i){ 00037 if(i<0) return i+nCircles; else return i; 00038 } 00039 00040 00041 }; 00042 00043 #endif // !defined(AFX_PAC_H__65EEAA15_5429_4476_885F_AF955C54055A__INCLUDED_)
Thyrix homepage Users' guide
(C) Arxia 2004-2005