Earcut

object Earcut

Kotlin Multiplatform Port of Earcut

Copyright earcut-kotlin-multiplatform

Thanks Monkey-Maestro

Types

Link copied to clipboard
class AnyToXYTransform(nx: Double, ny: Double, nz: Double)
Link copied to clipboard
class Input(val vertices: DoubleArray, val holeIndices: IntArray, val dimensions: Int)
Link copied to clipboard
class Point3(var x: Double = 0.0, var y: Double = 0.0, var z: Double = 0.0)
Link copied to clipboard
class VertexIndex(var i: Int, var x: Double, var y: Double)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun deviation(input: Earcut.Input, triangles: List<Int>): Double
fun deviation(data: DoubleArray, holeIndices: IntArray?, dim: Int, triangles: List<Int>): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun triangulate(path: List<Float2>, holeIndices: List<Int> = listOf()): List<Int>

fun triangulate(path: DoubleArray, holeIndices: IntArray = intArrayOf(), dimensions: Int = 2): List<Int>

Triangulate a polygon with 3d coordinates with optional hole