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.
Static
createCreates a new Rect with the given properties.
Returns the rectangle's center position as (x, y).
Returns the size of the rectangle as (width, height).
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Returns a string representation of the Rect.
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