IntRect¶
An axis-aligned integer rectangle described by its min/max bounds along each axis, rather than an origin and a size. Used for hit-testing and clip/overlap calculations (e.g. scissor regions).
Constructors¶
IntRect¶
Types¶
Companion¶
object Companion
Properties¶
height¶
maxX¶
maxY¶
minX¶
minY¶
width¶
Functions¶
div¶
intersect¶
Returns the overlapping region between this rect and other, or null if they don't overlap.
isEmpty¶
Returns true if this rect has zero or negative width/height.