From 18c1dfbb78d98516f5480f8199910fe41ac904df Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 28 Oct 2023 10:52:18 +0200 Subject: sound layer, bouncing --- src/math_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math_helper.c') diff --git a/src/math_helper.c b/src/math_helper.c index 6bb89e2..b795fe2 100644 --- a/src/math_helper.c +++ b/src/math_helper.c @@ -12,7 +12,7 @@ bool onSegment(vec2f p, vec2f q, vec2f r) int orientation(vec2f p, vec2f q, vec2f r) { - int val = (q.y - p.y) * (r.x - q.x) - + float val = (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); if (val == 0) return 0; // collinear -- cgit v1.2.3-70-g09d2