Package-level declarations

Types

Link copied to clipboard
class FSegmentsInt(capacity: Int = 5)
Link copied to clipboard
class FTrapezoidsInt(capacity: Int = 5)

(x0a, y0) (x0b, y0) +----------+ /
+--------------+ (x1a, y1) (x1b, y1)

Link copied to clipboard
Link copied to clipboard
interface ISegmentInt
Link copied to clipboard
interface ITriangleInt
Link copied to clipboard
data class MSegmentInt(var x0: Int, var y0: Int, var x1: Int, var y1: Int) : ISegmentInt
Link copied to clipboard
data class MTriangleInt(var x0: Int, var y0: Int, var x1: Int, var y1: Int, var x2: Int, var y2: Int) : ITriangleInt
Link copied to clipboard
data class SegmentInt(val p0: Vector2I, val p1: Vector2I)
Link copied to clipboard
data class TrapezoidInt(val x0a: Int, val x0b: Int, val y0: Int, val x1a: Int, val x1b: Int, val y1: Int)

https://en.wikipedia.org/wiki/Trapezoid

Link copied to clipboard
data class TriangleInt(val p0: Vector2I, val p1: Vector2I, val p2: Vector2I)

Functions

Link copied to clipboard
Link copied to clipboard
fun List<TrapezoidInt>.pointInside(x: Int, y: Int, assumeSorted: Boolean = false): TrapezoidInt?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun VectorPath.toTrapezoids(scale: Int = 1, winding: Winding = this.winding, out: FTrapezoidsInt = FTrapezoidsInt()): FTrapezoidsInt
Link copied to clipboard