[orx-triangulation] Fix typo in convex hull computation (#291)
This commit is contained in:
committed by
GitHub
parent
2cab34abce
commit
e3c3ab7c87
@@ -71,7 +71,7 @@ class DelaunayTriangulation(val points: List<Vector2>) {
|
||||
|
||||
fun hull() = contour {
|
||||
for (h in delaunay.hull) {
|
||||
moveOrLineTo(points[2 * h])
|
||||
moveOrLineTo(points[h])
|
||||
}
|
||||
close()
|
||||
}
|
||||
@@ -83,4 +83,4 @@ class DelaunayTriangulation(val points: List<Vector2>) {
|
||||
|
||||
fun List<Vector2>.delaunayTriangulation(): DelaunayTriangulation {
|
||||
return DelaunayTriangulation(this)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user