commonMain.GeoPolygon.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-stdlib-macosx64 Show documentation
Show all versions of fluid-stdlib-macosx64 Show documentation
Potentially useful Kotlin standard library additions
package io.fluidsonic.stdlib
data class GeoPolygon(
val points: List
) {
init {
require(points.size >= 3) { "A polygon must have at least 3 points" }
freeze()
}
}