Added gravity vector for polygons in gravity.h
This commit is contained in:
parent
958a784371
commit
7b5273b9bf
@ -2,11 +2,13 @@
|
||||
#define GRAVITY_H_INCLUDED
|
||||
|
||||
#include "balls.h"
|
||||
#include "polygons.h"
|
||||
|
||||
extern void gravity_constant_field(double x, double y);
|
||||
extern void gravity_newton_field(double r, double g);
|
||||
|
||||
extern vec2d gravity_vector(const ball* b);
|
||||
extern vec2d gravity_vector(const polygon* b);
|
||||
|
||||
extern void gravity_draw_visible_field(cairo_t* cr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user