RelativeRectangle
Visión general
RelativeRectangle es una clase en Aspose.3D FOSS para Python.
Rectángulo relativo
The formula between relative component to absolute value is:
Scale * (Reference Width) + offset
So if we want it to represent an absolute value, leave all scale fields zero, and use offset fields instead.Esta clase declara 2 métodos para objetos RelativeRectangle en programas Python. Los métodos disponibles incluyen: __init__, to_absolute. Todos los miembros públicos son accesibles a cualquier aplicación Python después de instalar el paquete Aspose.3D FOSS para Python. Propiedades: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width, y 2 más.
Propiedades
| Nombre | Tipo | Acceso | Descripción |
|---|---|---|---|
scale_x | float | Lectura/Escritura | Obtiene o establece la escala x. |
scale_y | float | Lectura/Escritura | Obtiene o establece la escala y. |
scale_width | float | Lectura/Escritura | Obtiene o establece el ancho de escala. |
scale_height | float | Lectura/Escritura | Obtiene o establece la altura de escala. |
offset_x | int | Lectura/Escritura | Obtiene o establece el desplazamiento x. |
offset_y | int | Lectura/Escritura | Obtiene o establece el desplazamiento y. |
offset_width | int | Lectura/Escritura | Obtiene o establece el ancho del desplazamiento. |
offset_height | int | Lectura/Escritura | Obtiene o establece la altura del desplazamiento. |
Métodos
| Firma | Descripción |
|---|---|
__init__(left: int, top: int, width: int, height: int) | Calls init(izquierda, arriba, ancho, alto) en esta instancia de RelativeRectangle. |
to_absolute(left: int, top: int, width: int, height: int) → 'Rect' | Convertir a rectángulo absoluto usando los valores de referencia dados |