Update for OPENRNDR segment and path generalizations
This commit is contained in:
@@ -86,7 +86,7 @@ fun ShapeProvider.scatter(
|
||||
hg
|
||||
}
|
||||
|
||||
fun Segment.randomPoints(count: Int) = sequence {
|
||||
fun Segment2D.randomPoints(count: Int) = sequence {
|
||||
for (i in 0 until count) {
|
||||
val t = random.nextDouble()
|
||||
yield(position(t) - normal(t).normalized * distanceToEdge)
|
||||
|
||||
Reference in New Issue
Block a user