We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e12c1f + 01c0777 commit 6f28799Copy full SHA for 6f28799
include/delaunator.cpp
@@ -220,7 +220,7 @@ Delaunator::Delaunator(std::vector<double> const& in_coords)
220
max_y = std::max(p.y(), max_y);
221
}
222
double width = max_x - min_x;
223
- double height = max_x - min_y;
+ double height = max_y - min_y;
224
double span = width * width + height * height; // Everything is square dist.
225
226
Point center((min_x + max_x) / 2, (min_y + max_y) / 2);
0 commit comments