[orx-triangulation] Fix typo in convex hull computation (#291)

This commit is contained in:
Steven van den Broek
2023-02-12 20:28:06 +01:00
committed by GitHub
parent 2cab34abce
commit e3c3ab7c87

View File

@@ -71,7 +71,7 @@ class DelaunayTriangulation(val points: List<Vector2>) {
fun hull() = contour { fun hull() = contour {
for (h in delaunay.hull) { for (h in delaunay.hull) {
moveOrLineTo(points[2 * h]) moveOrLineTo(points[h])
} }
close() close()
} }