Rect class
Rect class
A class to represent the rectangle
The Rect type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
__init__(self, x, y, width, height) | Constructor of class Rect |
__init__(self) | Constructs a new instance of Rect |
Properties
| Property | Description |
|---|---|
| width | Gets or sets the width of the size |
| height | Gets or sets the height of the size |
| x | Gets or sets the x of the size |
| y | Gets or sets the y of the size |
| left | Gets the left of the rectangle |
| right | Gets the right of the rectangle |
| top | Gets the top of the rectangle |
| bottom | Gets the bottom of the rectangle |
Methods
| Method | Description |
|---|---|
contains(self, x, y) | Return true if the given point is inside the rectangle. |
See Also
- module
aspose.threed.utilities - class
Rect