Skip to content

Commit

Permalink
Fix bug rasterizing ellipses (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriyvan authored Oct 11, 2023
1 parent 5a33295 commit dfa2611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/geometrize/Shapes/Ellipse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class Ellipse: Shape {
if x2 >= xMax {
x2 = xMax - 1
}
if y1 >= xMin && y1 < yMax {
if y1 >= yMin && y1 < yMax {
if let line = Scanline(y: y1, x1: x1, x2: x2).trimmed(minX: xMin, minY: yMin, maxX: xMax, maxY: yMax) {
lines.append(line)
}
Expand Down

0 comments on commit dfa2611

Please sign in to comment.