Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95150341
pendcouple.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
Fri, Dec 13, 06:30
Size
613 B
Mime Type
text/x-c++
Expires
Sun, Dec 15, 06:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22933847
Attached To
rSYMKIT symkit
pendcouple.h
View Options
#ifndef PENDCOUPLE_H
#define PENDCOUPLE_H
#include "actors/symsystem.h"
#include "vector.h"
class PendSphere;
class PenduleDesc;
class GLModel;
class PenduleCouple : public SymSystem
{
// system descriptor
PenduleDesc * descriptor;
// array of 2 spheres
PendSphere * sphere[2];
public:
PenduleCouple(GLModel *);
~PenduleCouple();
double energy() const;
virtual void evolve(float dt) override;
virtual void render(symkit::render_s &) override;
// constants
static const Vector pos, speed;
static const double l1, l2, m1, m2, g;
};
#endif // PENDCOUPLE_H
Event Timeline
Log In to Comment