FTrapezoidsInt

class FTrapezoidsInt(capacity: Int = 5)

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

Constructors

Link copied to clipboard
constructor(capacity: Int = 5)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
value class Item(val index: Int)
Link copied to clipboard
data class PointInsideStats(var found: Boolean = false, var iterations: Int = 0, var iterations2: Int = 0, var total: Int = 0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard

Left coordinate of top part

Link copied to clipboard

Right coordinate of top part

Link copied to clipboard

Left coordinate of bottom part

Link copied to clipboard

Right coordinate of bottom part

Link copied to clipboard

Top coordinate

Link copied to clipboard

Bottom coordinate

Functions

Link copied to clipboard
Link copied to clipboard
fun clear()
Link copied to clipboard
fun containsPoint(x: Int, y: Int, assumeSorted: Boolean = this.assumeSorted): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun get(index: Int): FTrapezoidsInt.Item
Link copied to clipboard
Link copied to clipboard
inline fun <T> map(block: FTrapezoidsInt.(FTrapezoidsInt.Item) -> T): List<T>
Link copied to clipboard
inline fun pointInside(x: Int, y: Int, assumeSorted: Boolean = this.assumeSorted, out: FTrapezoidsInt.(FTrapezoidsInt.Item) -> Unit = { }, stats: FTrapezoidsInt.PointInsideStats? = null): Boolean
Link copied to clipboard
fun toInsideString(width: Int, height: Int, scale: Int = 1, inside: Char = '#', outside: Char = '.'): String
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard