Remove .take() from demos and tests when using .sampleEquidistant() (#325)

This commit is contained in:
Abe Pazos
2024-01-22 07:03:20 +00:00
committed by GitHub
parent 06f11b6ad7
commit fbcdd222ef
6 changed files with 5 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ import kotlin.test.assertTrue
class TestVoronoiDiagram {
@Test
fun testNeighbors() {
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20).take(20)
val c = Circle(200.0, 200.0, 150.0).contour.equidistantPositions(20)
val d = Delaunay.from(c)
val v = d.voronoi(Rectangle(0.0, 0.0, 400.0, 400.0))
for (j in c.indices) {