Skip to content

Commit 01c0777

Browse files
committed
Fix bounding box calculation.
1 parent 2e12c1f commit 01c0777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/delaunator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Delaunator::Delaunator(std::vector<double> const& in_coords)
220220
max_y = std::max(p.y(), max_y);
221221
}
222222
double width = max_x - min_x;
223-
double height = max_x - min_y;
223+
double height = max_y - min_y;
224224
double span = width * width + height * height; // Everything is square dist.
225225

226226
Point center((min_x + max_x) / 2, (min_y + max_y) / 2);

0 commit comments

Comments
 (0)