summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-01-16 17:09:14 +0000
committerrodri <rgl@antares-labs.eu>2024-01-16 17:09:14 +0000
commitd6be49085c76bbea87b7d7c61455b93883669bf1 (patch)
treebff7cf7fbc66cd5da303122ebb50f87e8a7d44a7 /dat.h
parent168a16b70a928ed64061bdac7fc9d52235c3f9fc (diff)
downloadballistics-d6be49085c76bbea87b7d7c61455b93883669bf1.tar.gz
ballistics-d6be49085c76bbea87b7d7c61455b93883669bf1.tar.bz2
ballistics-d6be49085c76bbea87b7d7c61455b93883669bf1.zip
rewrite it using libgeometry.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/dat.h b/dat.h
index f1aff88..24799b8 100644
--- a/dat.h
+++ b/dat.h
@@ -1,15 +1,8 @@
-#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,
@@ -18,15 +11,10 @@ enum {
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;
+struct Projectile
+{
+ Point2 p, v;
double mass;
};