Fix poissonDiskSampling signature change in demos (#225)

This commit is contained in:
Abe Pazos
2022-02-28 21:02:26 +01:00
committed by GitHub
parent b9779bb821
commit 299bebfe89
4 changed files with 5 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ fun main() {
val frame = Rectangle.fromCenter(Vector2(400.0), 600.0, 600.0)
val points = poissonDiskSampling(frame.width, frame.height, 50.0).map { it + frame.corner }
val points = poissonDiskSampling(frame, 50.0).map { it + frame.corner }
val delaunay = Delaunay.from(points)
val halfedges = delaunay.halfedges()