Skip to content

Commit 6f28799

Browse files
authored
Merge pull request #17 from abellgithub/issue-16
Fix bounding box calculation.
2 parents 2e12c1f + 01c0777 commit 6f28799

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)