No Description

engine.h 492B

    #ifndef ENGINE_H #define ENGINE_H typedef struct RigidMass { long mass; double vx, vy; double x, y; double dvx, dvy; double tick_time; } RigidMass_t; struct node_t { long mass; int n; //num masses double xmin; double xmax; double ymin; double ymax; double CoM_x; double CoM_y; //0 - top left //1 - top right //2 - bottom left //3 - bottom right struct node_t *nodes[4]; }; extern const double G; void barnesIterate(RigidMass_t *masses, int n, int w, int h); #endif