commonMain.bounds.Bounds.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.extra.shapes.bounds
import org.openrndr.shape.*
import kotlin.jvm.JvmName
/**
* Evaluates the bounds around all [ShapeContour] instances in the [Iterable]
*/
val Iterable.bounds : Rectangle
@JvmName("shapeContourBounds")
get() = map {
it.bounds
}.bounds
/**
* Evaluates the bounds around all [Shape] instances in the [Iterable]
*/
val Iterable.bounds : Rectangle
@JvmName("shapeBounds")
get() = map {
it.bounds
}.bounds
/**
* Evaluates the bounds around all [Segment] instances in the [Iterable]
*/
val Iterable.bounds : Rectangle
@JvmName("segmentBounds")
get() = map {
it.bounds
}.bounds
© 2015 - 2024 Weber Informatics LLC | Privacy Policy