Rect¶
Type
Rect is an immutable 2D rectangle (minX, minY, maxX, maxY) in pixels, created with Rect.new.
Min¶
Min is the (minX, minY, 0) vector.
Max¶
Max is the (maxX, maxY, 0) vector.
Width¶
Width is Max.x - Min.x.
Height¶
Height is Max.y - Min.y.
__tostring¶
__tostring returns "Rect(minX, minY, maxX, maxY)".
__eq¶
__eq returns true when all four coordinates match.