
## Rect class

A class to represent the rectangle



The Rect type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [`__init__(self, x, y, width, height)`](/3d/python-net/aspose.threed.utilities/rect/__init__/#int-int-int-int) | Constructor of class [`Rect`](/3d/python-net/aspose.threed.utilities/rect) |
| [`__init__(self)`](/3d/python-net/aspose.threed.utilities/rect/__init__/#) | Constructs a new instance of Rect |


### Properties
| Property | Description |
| :- | :- |
| [width](/3d/python-net/aspose.threed.utilities/rect/width) | Gets or sets the width of the size |
| [height](/3d/python-net/aspose.threed.utilities/rect/height) | Gets or sets the height of the size |
| [x](/3d/python-net/aspose.threed.utilities/rect/x) | Gets or sets the x of the size |
| [y](/3d/python-net/aspose.threed.utilities/rect/y) | Gets or sets the y of the size |
| [left](/3d/python-net/aspose.threed.utilities/rect/left) | Gets the left of the rectangle |
| [right](/3d/python-net/aspose.threed.utilities/rect/right) | Gets the right of the rectangle |
| [top](/3d/python-net/aspose.threed.utilities/rect/top) | Gets the top of the rectangle |
| [bottom](/3d/python-net/aspose.threed.utilities/rect/bottom) | Gets the bottom of the rectangle |


### Methods
| Method | Description |
| :- | :- |
| [`contains(self, x, y)`](/3d/python-net/aspose.threed.utilities/rect/contains/#int-int) | Return true if the given point is inside the rectangle. |



### See Also
* module [`aspose.threed.utilities`](..)
* class [`Rect`](/3d/python-net/aspose.threed.utilities/rect)
