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.
x-coordinate of one corner
y-coordinate of one corner
x-coordinate of other corner
y-coordinate of other corner
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.