commonMain.korlibs.math.geom.Polygon.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of korma-jvm Show documentation
Show all versions of korma-jvm Show documentation
Mathematic library for Multiplatform Kotlin 1.3
The newest version!
package korlibs.math.geom
import korlibs.math.geom.shape.*
import korlibs.math.geom.vector.*
data class Polygon(val points: PointList) : AbstractShape2D() {
override val lazyVectorPath: VectorPath by lazy { buildVectorPath { polygon(points, close = true) } }
}