aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-10-11 01:43:01 -0500
committerepoch <epoch@hacking.allowed.org>2020-10-11 01:43:01 -0500
commit71992392c025c7d0d918c1706a4c5805dbf784ff (patch)
tree140dd733d4e6cd994c9b859c720c8542545dd623
parent131e49b2e6436f87d328ea10bd192e62bf6c2cb0 (diff)
downloadhackvr-71992392c025c7d0d918c1706a4c5805dbf784ff.tar.gz
hackvr-71992392c025c7d0d918c1706a4c5805dbf784ff.zip
added a epoch_PnPoly which mimics the interface the other *_PnPoly functions use, but it only just does a bounding box check. changed from cs_t to c2_t (int to real)
-rw-r--r--src/math.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math.h b/src/math.h
index 9c69599..13f4d63 100644
--- a/src/math.h
+++ b/src/math.h
@@ -25,8 +25,8 @@ c2_t c2_add(c2_t p1,c2_t p2);
real distance3(c3_t p1,c3_t p2);
void print_point(c3_t p);
-int isLeft(cs_t, cs_t, cs_t);
-int cn_PnPoly(cs_t, cs_t *, int);
-int wn_PnPoly(cs_t, cs_t *, int);
-
+int isLeft(c2_t, c2_t, c2_t);
+int cn_PnPoly(c2_t, c2_t *, int);
+int wn_PnPoly(c2_t, c2_t *, int);
+int epoch_PnPoly(c2_t, c2_t *,int);
#endif