Rect
Overview
Rect is a class in Aspose.3D FOSS for Python.
A class to represent the rectangle
This class declares 2 methods for Rect objects in Python programs.
Available methods include: __init__, contains.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: bottom, height, left, right, top, width, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read/Write | Gets or sets the width. |
height | int | Read/Write | Gets or sets the height. |
x | int | Read/Write | Gets or sets the x. |
y | int | Read/Write | Gets or sets the y. |
left | int | Read | Gets the left. |
right | int | Read | Gets the right. |
top | int | Read | Gets the top. |
bottom | int | Read | Gets the bottom. |
Methods
| Signature | Description |
|---|---|
__init__(x: int, y: int, width: int, height: int) | Calls init(x, y, width, height) on this Rect instance. |
contains(x: int, y: int) → bool | Returns True if the specified point lies within the rectangle’s bounds |