diff options
Diffstat (limited to 'src/math_helper.c')
| -rw-r--r-- | src/math_helper.c | 2 |
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 |
