Represents an immutable rectangle in 2D space.
PS2 instructions: DO NOT change this class. If you need more operations, define functions outside Rect.
Make a rectangle with opposing corners (x1, y1) and (x2, y2). Requires x1 <= x2 and y1 <= y2.
Generated using TypeDoc
Represents an immutable rectangle in 2D space.
PS2 instructions: DO NOT change this class. If you need more operations, define functions outside Rect.