summaryrefslogtreecommitdiff
path: root/src/math_helper.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 10:52:18 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 10:52:18 +0200
commit18c1dfbb78d98516f5480f8199910fe41ac904df (patch)
tree8ee69fde44ac3b8969ebf529883656a2d05b1e45 /src/math_helper.c
parent641f81317a5b5cea6b3c5a4c65b1ca4313b0d8c0 (diff)
sound layer, bouncing
Diffstat (limited to 'src/math_helper.c')
-rw-r--r--src/math_helper.c2
1 files changed, 1 insertions, 1 deletions
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