Rectangle Class

The rectangle class.

Constructor

Rectangle ( x , y , width , height )

Parameters:

  • x Number

    The x coordinate for the upper-left corner

  • y Number

    The y coordinate for the upper-left corner

  • width Number

    The width of the rectangle

  • height Number

    The height of the rectangle

Item Index

Properties

Properties

height Number

The height of the rectangle.

width Number

The width of the rectangle.

x Number

The x coordinate for the upper-left corner.

y Number

The y coordinate for the upper-left corner.