TrapezoidInt

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

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

Constructors

Link copied to clipboard
constructor(x0a: Int, x0b: Int, y0: Int, x1a: Int, x1b: Int, y1: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val baseA: Int
Link copied to clipboard
val baseB: Int
Link copied to clipboard
val height: Int
Link copied to clipboard
val x0a: Int
Link copied to clipboard
val x0b: Int
Link copied to clipboard
val x1a: Int
Link copied to clipboard
val x1b: Int
Link copied to clipboard
val y0: Int
Link copied to clipboard
val y1: Int

Functions

Link copied to clipboard
fun inside(x: Int, y: Int): Boolean
Link copied to clipboard
fun triangulate(out: FTrianglesInt = FTrianglesInt()): FTrianglesInt