From d6e8fd3a5d3b6d07e26a00cbf610d5587e2840a4 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 9 Jan 2017 01:08:12 -0600 Subject: made all versions get built by default and moved some functions from graphics.c into math.c so the headless does not need graphics.c --- src/math.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/math.h (limited to 'src/math.h') diff --git a/src/math.h b/src/math.h new file mode 100644 index 0000000..1afe959 --- /dev/null +++ b/src/math.h @@ -0,0 +1,18 @@ +#ifndef _HACKVR_MATH_H_ +#define _HACKVR_MATH_H_ + +#include "common.h" //should define c3_t + +#define __USE_GNU +#include +#undef __USE_GNU + +real distance2(c2_t p1,c2_t p2); +c2_t rotate_c2(c2_t p1,c2_t p2,real dr); +c3_t rotate_c3_xr(c3_t p1,c3_t p2,real xr); +c3_t rotate_c3_yr(c3_t p1,c3_t p2,real yr); +c3_t rotate_c3_zr(c3_t p1,c3_t p2,real zr); +real d2r(int d); +real points_to_angle(c2_t p1,c2_t p2); + +#endif -- cgit v1.2.3