
commonMain.com.bselzer.ktx.geometry.dimension.bi.polygon.Digon.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geometry-jvm Show documentation
Show all versions of geometry-jvm Show documentation
Two and three dimensional geometrical objects.
The newest version!
package com.bselzer.ktx.geometry.dimension.bi.polygon
import com.bselzer.ktx.geometry.dimension.bi.position.Point2D
/**
* A polygon made of two points.
*/
data class Digon(
val point1: Point2D = Point2D(),
val point2: Point2D = Point2D()
) : Polygon(listOf(point1, point2))
© 2015 - 2025 Weber Informatics LLC | Privacy Policy