You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
229 B
18 lines
229 B
1 year ago
|
#include <vector>
|
||
|
#include <cstdint>
|
||
|
|
||
|
class Pendulum;
|
||
|
|
||
|
class Simulation {
|
||
|
public:
|
||
|
explicit Simulation();
|
||
|
|
||
|
double size = 50;
|
||
|
|
||
|
private:
|
||
|
std::vector<Pendulum *> pendula;
|
||
|
|
||
|
double gravity;
|
||
|
double timescale;
|
||
|
uint64_t substeps;
|
||
|
};
|