From 168a16b70a928ed64061bdac7fc9d52235c3f9fc Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 20 Feb 2020 22:02:08 +0000 Subject: git release. --- dat.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dat.h (limited to 'dat.h') diff --git a/dat.h b/dat.h new file mode 100644 index 0000000..f1aff88 --- /dev/null +++ b/dat.h @@ -0,0 +1,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; +}; -- cgit v1.2.3