Rect2f

value class Rect2f(val position: Position2f, val size: Size2f)(source)

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

Constructors

Link copied to clipboard
constructor(position: Position2f, size: Size2f)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val left: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val top: Float

Functions

Link copied to clipboard
operator fun contains(other: Rect2f): Boolean
operator fun contains(point: Vector2f): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun union(other: Rect2f): Rect2f

Smallest bounding rectangle; empty inputs do not enlarge it.