flying-balls/gravity.h

21 lines
508 B
C
Raw Normal View History

#ifndef GRAVITY_H_INCLUDED
#define GRAVITY_H_INCLUDED
#include "balls.h"
#include "polygons.h"
2023-05-17 13:29:38 +02:00
extern void gravity_constant_field(double x, double y);
extern void gravity_newton_field(double r, double g);
2023-05-17 13:29:38 +02:00
extern vec2d gravity_vector(const ball* b);
extern vec2d gravity_vector(const polygon* b);
2023-05-17 13:29:38 +02:00
extern void gravity_draw_visible_field(cairo_t* cr);
2023-05-17 13:29:38 +02:00
extern void gravity_draw(cairo_t* cr);
extern void gravity_change(double dx, double dy);
2023-05-17 13:29:38 +02:00
extern void gravity_collisions(ball* begin, ball* end);
#endif