Rect2i

value class Rect2i(val position: Position2i, val size: Size2i)(source)

Half-open rectangle: left/top included, right/bottom excluded. Zero-sized rectangles are empty.

Constructors

Link copied to clipboard
constructor(position: Position2i, size: Size2i)

Properties

Link copied to clipboard
val bottom: Int
Link copied to clipboard
Link copied to clipboard
val left: Int
Link copied to clipboard
Link copied to clipboard
val right: Int
Link copied to clipboard
Link copied to clipboard
val top: Int

Functions

Link copied to clipboard
operator fun contains(other: Rect2i): Boolean
operator fun contains(point: Vector2i): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun union(other: Rect2i): Rect2i

Smallest bounding rectangle; empty inputs do not enlarge it.