Skip to content

Commit

Permalink
Merge branch 'peter/main-lm' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter committed Feb 2, 2024
2 parents aa54798 + b427b78 commit 75e0172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/PublicSale/luckyMoney/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export function pointInConvexHull(
hull: [Point, Point, Point, Point],
) {
const n = hull.length;
let isInside = true;
let isInside = false;

for (let i = 0, j = n - 1; i < n; j = i++) {
if (
hull[i].y > point.y !== hull[j].y > point.y &&
point.x <
point.x >
((hull[j].x - hull[i].x) * (point.y - hull[i].y)) /
(hull[j].y - hull[i].y) +
hull[i].x
Expand Down

0 comments on commit 75e0172

Please sign in to comment.