Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95092167
penduleressort.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 19:20
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Dec 14, 19:20 (2 d)
Engine
blob
Format
Raw Data
Handle
22900780
Attached To
rSYMKIT symkit
penduleressort.h
View Options
#ifndef PENDULERESSORT_H
#define PENDULERESSORT_H
#include "actors/systems/symsystem.h"
#include "vector.h"
class PendrSphere;
class PenduleRessort;
class GLModel;
class PenduleRessortPanel;
class PenduleR : public SymSystem
{
// system descriptor
PenduleRessort * descriptor;
// array of 2 spheres
PendrSphere * sphere[2];
PenduleRessortPanel * panel;
public:
/* Constructor and Destructor */
PenduleR(GLModel *, SVector<3> offset = SVector<3>::nullv);
//Ce premier constructeur on l'utilise pour allégerer l'écriture dans betasce
PenduleR(GLModel *, const Vector&, const Vector&, const double&, const double&, const double&, const double&, const double& fr1 = 0, const double& fr2 = 0, const double& g = 9.81, SVector<3> offset = SVector<3>::nullv);
~PenduleR();
PendrSphere * getPendule();
PendrSphere * getRessort();
PenduleRessortPanel * getPanel();
virtual void evolve(float dt) override;
virtual void render(symkit::render_s) override;
double energy() const;
// constants
static const Vector pos, speed;
static const double l, k, m1, m2, fr1, fr2, g;
};
#endif // PENDULERESSORT_H
Event Timeline
Log In to Comment