Skip to content

Commit

Permalink
cleanup formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Jan 8, 2025
1 parent a033fd4 commit 2c4db22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/draw/fill_polygon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ Image fillPolygon(Image src,
if (v1.y <= y && v2.y > y || v2.y <= y && v1.y > y) {
// Ray intersects the edge (vertical check)
final vt = (y - v1.y) / (v2.y - v1.y);
if (x < v1.x + vt * (v2.x - v1.x)) { // Horizontal check
if (x < v1.x + vt * (v2.x - v1.x)) {
// Horizontal check
intersections++;
}
}
Expand Down

0 comments on commit 2c4db22

Please sign in to comment.