From 71992392c025c7d0d918c1706a4c5805dbf784ff Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 11 Oct 2020 01:43:01 -0500 Subject: 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) --- src/math.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3