Rect
Overview
Rect is a struct in Aspose.3D FOSS for .NET.
Rect.Rect initializes a rectangle with the given X, Y, width, and height.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
X | int | Read/Write | Gets or sets the horizontal coordinate of the rectangle’s left edge |
Y | int | Read/Write | Gets or sets the vertical coordinate of the rectangle’s top edge |
Width | int | Read/Write | Gets or sets the rectangle’s width |
Height | int | Read/Write | |
Left | int | Read | Gets the X coordinate of the rectangle’s left side |
Right | int | Read | |
Top | int | Read | Gets the Y coordinate of the rectangle’s top side |
Bottom | int | Read |
Methods
| Signature | Description |
|---|---|
Rect(x: int, y: int, width: int, height: int) | Initializes a rectangle with the given X, Y, width, and height |
Contains(x: int, y: int) | Returns true if the point (x, y) lies within the rectangle bounds |