blob: f1aff886bf0f56fd78c835fb65de88ae0e090a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#define DEG 0.01745329251994330
#define Eg 9.81
#define PIX2M 0.001
#define M2PIX (1.0/PIX2M)
enum {
STACK = 8192,
SEC = 1000,
FPS = 60,
};
enum {
Stheta = 0,
Spos,
Svel,
Sdeltax,
Seta,
SLEN,
};
typedef struct Vector Vector;
typedef double Matrix[3][3];
typedef struct Projectile Projectile;
struct Vector {
double x, y, w;
};
struct Projectile {
Vector p, v;
double mass;
};
|