Rect
General
Rect és una estructura en Aspose.3D FOSS per a .NET.
Rect.Rect creates a rectangle with the specified x, y, width, and height.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
X | int | Llegir/Escriure | Obté o fixa la coordenada X del costat esquerre del rectangle. |
Y | int | Llegir/Escriure | |
Width | int | Llegir/Escriure | Obté o fixa la mida horitzontal del rectangle. |
Height | int | Llegir/Escriure | Obté o fixa la mida vertical del rectangle. |
Left | int | Llegeix. | Retorna la coordenada X del costat esquerre del rectangle. |
Right | int | Llegeix. | |
Top | int | Llegeix. | Retorna la coordenada Y del límit superior del rectangle. |
Bottom | int | Llegeix. |
Mètodes
| Signatura | Descripció |
|---|---|
Rect(x: int, y: int, width: int, height: int) | Crea un rectangle amb els x, y, ampleura i alçada especificats. |
Contains(x: int, y: int) | Retorna true si el punt (x, y) es troba dins del rectangle. |