Package-level declarations

Types

Link copied to clipboard
value class Angle(val radians: Float) : Comparable<Angle>
Link copied to clipboard
open class MutablePoint(var x: Float, var y: Float) : Point
Link copied to clipboard
class OpenRange<T : Comparable<T>>(val start: T, val endExclusive: T)
Link copied to clipboard
open class Point(val x: Float, val y: Float)
Link copied to clipboard

A simple implementation of the ear cutting algorithm to triangulate simple polygons without holes.

Functions

Link copied to clipboard
inline fun abs(angle: Angle): Angle
Link copied to clipboard
Link copied to clipboard
operator fun <T : Comparable<T>> OpenRange<T>.contains(item: T): Boolean
Link copied to clipboard
inline fun cos(angle: Angle): Float
Link copied to clipboard
operator fun Double.div(angle: Angle): Angle
operator fun Float.div(angle: Angle): Angle
operator fun Int.div(angle: Angle): Angle
Link copied to clipboard
infix fun Angle.inBetween(range: OpenRange<Angle>): Boolean
fun Angle.inBetween(min: Angle, max: Angle, inclusive: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun isCCW(polygon: FloatArray, offset: Int = 0, count: Int = polygon.size): Boolean
Link copied to clipboard
fun isClockwise(polygon: FloatArray, offset: Int = 0, count: Int = polygon.size): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun sin(angle: Angle): Float
Link copied to clipboard
inline fun tan(angle: Angle): Float
Link copied to clipboard
operator fun Double.times(angle: Angle): Angle
operator fun Float.times(angle: Angle): Angle
operator fun Int.times(angle: Angle): Angle
Link copied to clipboard
infix fun Angle.until(other: Angle): OpenRange<Angle>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard