Rect
Visión general
Rect Es una estructura en Aspose.3D FOSS para .NET.
La derecha representa un rectángulo con posición y tamaño, ofreciendo un método de contenidos para probar si un punto se encuentra dentro.
Esta estructura proporciona 2 métodos para trabajar con objetos de Rect en programas .NET. Los métodos disponibles incluyen: Contains, Rect. Todos los miembros públicos están accesibles a cualquier aplicación .NET después de instalar el Aspose.3D FOSS para el paquete .Net. Propiedades : Bottom, Height, Left, Right, Top, Width,Y dos más.
Propiedades
| Nombre | Tipo | Access | Descripción |
|---|---|---|---|
X | int | Leer / escribir | Obtiene o establece la x. |
Y | int | Leer / escribir | Obtiene o establece la y. |
Width | int | Leer / escribir | Obtiene o establece el ancho. |
Height | int | Leer / escribir | Obtiene o establece la altura. |
Left | int | Leer | Obtiene el izquierdo. |
Right | int | Leer | Obtiene el lado derecho. |
Top | int | Leer | Obtiene la parte superior. |
Bottom | int | Leer | Obtiene la parte inferior. |
Métodos
| Signature | Descripción |
|---|---|
Rect(x: int, y: int, width: int, height: int) | Inicializa un rectángulo con la posición x, y especificada y ancho, altura |
Contains(x: int, y: int) | Retorna verdad si el punto (x, y) está dentro de los límites rectangulares. |