Rect
Overview
Rect is a struct in Aspose.3D FOSS for .NET.
Rect represents a rectangle with position and size, offering a Contains method to test whether a point lies inside it.
This struct provides 2 methods for working with Rect objects in .NET programs.
Available methods include: Contains, Rect.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Bottom, Height, Left, Right, Top, Width, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
X | int | Read/Write | Gets or sets the x. |
Y | int | Read/Write | Gets or sets the y. |
Width | int | Read/Write | Gets or sets the width. |
Height | int | Read/Write | Gets or sets the height. |
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 |
|---|---|
Rect(x: int, y: int, width: int, height: int) | Initializes a rectangle with the specified x, y position and width, height |
Contains(x: int, y: int) | Returns true if the point (x, y) is inside the rectangle boundaries |