Rect

The rectangle class.

Superclass

Class Method

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

Creates a new Rect object.

The default values when no arguments are specified are (0, 0, 0, 0). (RGSS3)

Methods

set(x, y, width, height)
set(rect) (RGSS3)

Sets all parameters at once.

The second format copies all the components from a separate Rect object. (RGSS3)

empty

Sets all components to 0.

Properties

x

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

y

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

width

The rectangle's width.

height

The rectangle's height.