The y position of the rectangle's bottom side.
The x position of the rectangle's left side.
The x position of the rectangle's right side.
The y position of the rectangle's top side.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Sets the rectangle's center position while maintaining its size.
Sets the rectangle's size while maintaining its center position.
An axis aligned rectangle. Used by
anchors
andoffsets
in ScreenTransform to represent screen boundaries. Rect can only store finite numbers in the range Number.MIN_VALUE to Number.MAX_VALUE.Example