## Rect class

  A class to represent the rectangle


## Methods

### constructor{#constructor}

| Name | Description |
| --- | --- |
| constructor() |  | 

 **Result:**



---


### constructor_overload{#constructor_overload}

| Name | Description |
| --- | --- |
| constructor_overload(x, y, width, height) | Constructor of class Rect | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|   | Number | null |
|   | Number | null |
|  widt | Number | null |
|  heigh | Number | null |

 **Result:**



---


### getWidth{#getWidth}

| Name | Description |
| --- | --- |
| getWidth() | Gets or sets the width of the size | 

 **Result:**



---


### setWidth{#setWidth}

| Name | Description |
| --- | --- |
| setWidth(value) | Gets or sets the width of the size | 

 **Result:**



---


### getHeight{#getHeight}

| Name | Description |
| --- | --- |
| getHeight() | Gets or sets the height of the size | 

 **Result:**



---


### setHeight{#setHeight}

| Name | Description |
| --- | --- |
| setHeight(value) | Gets or sets the height of the size | 

 **Result:**



---


### getX{#getX}

| Name | Description |
| --- | --- |
| getX() | Gets or sets the x of the size | 

 **Result:**



---


### setX{#setX}

| Name | Description |
| --- | --- |
| setX(value) | Gets or sets the x of the size | 

 **Result:**



---


### getY{#getY}

| Name | Description |
| --- | --- |
| getY() | Gets or sets the y of the size | 

 **Result:**



---


### setY{#setY}

| Name | Description |
| --- | --- |
| setY(value) | Gets or sets the y of the size | 

 **Result:**



---


### getLeft{#getLeft}

| Name | Description |
| --- | --- |
| getLeft() | Gets the left of the rectangle | 

 **Result:**



---


### getRight{#getRight}

| Name | Description |
| --- | --- |
| getRight() | Gets the right of the rectangle | 

 **Result:**



---


### getTop{#getTop}

| Name | Description |
| --- | --- |
| getTop() | Gets the top of the rectangle | 

 **Result:**



---


### getBottom{#getBottom}

| Name | Description |
| --- | --- |
| getBottom() | Gets the bottom of the rectangle | 

 **Result:**



---


### contains{#contains}

| Name | Description |
| --- | --- |
| contains(x, y) | Return true if the given point is inside the rectangle. | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|   | Number | null |
|   | Number | null |

 **Result:**
boolean


---



