summaryrefslogtreecommitdiff
path: root/bowshock/include/bow/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bowshock/include/bow/lgc.h')
-rw-r--r--bowshock/include/bow/lgc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/bowshock/include/bow/lgc.h b/bowshock/include/bow/lgc.h
new file mode 100644
index 0000000..416dcf3
--- /dev/null
+++ b/bowshock/include/bow/lgc.h
@@ -0,0 +1,13 @@
+#if !defined(bow_hdr_lgc)
+#define bow_hdr_lgc
+
+#include <bow/bs.h>
+
+#define bow_dist(x,y,z) sqrt(pow(x,0x2.0p0)+pow(y,0x2.0p0)+pow(z,0x2.0p0))
+
+constexpr double bow_gravconst = 0x1.0p0; // gravitational constant
+
+void bow_grav(bow_obj * obj,bow_obj const * par);
+void bow_mv( bow_obj * obj);
+
+#endif