Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ElasticLink.h

Go to the documentation of this file.
00001 // ElasticLink.h: interface for the ElasticLink class.
00002 //
00004 
00005 #if !defined(AFX_ELASTICLINK_H__CF42E708_6848_4CF4_B4DA_19E78FAA2BAC__INCLUDED_)
00006 #define AFX_ELASTICLINK_H__CF42E708_6848_4CF4_B4DA_19E78FAA2BAC__INCLUDED_
00007 
00008 #include "PhysicalObject.h"
00009 #include "GUI.h"
00010 
00012 class ElasticLink  {
00013 public:
00014    ElasticLink(PhysicalObject* object1, PhysicalObject* object2, real length, real k);
00015    virtual ~ElasticLink();
00016    
00017    //The objects linked
00018    PhysicalObject* object1;
00019    PhysicalObject* object2;
00020 
00022    real length;
00023 
00025    real k;
00026 
00029    void applyForces();
00030 
00031    void draw(GUI* gui);
00032 
00033 };
00034 
00035 typedef std::vector<ElasticLink> ElasticLinkVector;
00036 
00037 #endif // !defined(AFX_ELASTICLINK_H__CF42E708_6848_4CF4_B4DA_19E78FAA2BAC__INCLUDED_)

Thyrix homepageUsers' guide

(C) Arxia 2004-2005