> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rgss-built-in-classes/rect.md).

# Rect

The rectangle class.

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Class Method

### Rect.new(x, y, width, height)

Creates a new Rect object.

## Method

### set(x, y, width, height)

Sets all parameters at once.

## Properties

### x

The X-coordinate of the rectangle's upper left corner.

### y

The Y-coordinate of the rectange's upper left corner.

### width

The rectangle's width.

### height

The rectangle's height.
