RelativeRectangle
סקירה כללית
RelativeRectangle היא מחלקה ב-Aspose.3D FOSS עבור Python.
מלבן יחסי
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.המחלקה הזו מגדירה 2 שיטות עבור אובייקטי RelativeRectangle בתוכניות Python. השיטות הזמינות כוללות: __init__, to_absolute. כל החברים הציבוריים נגשים לכל יישום Python לאחר התקנת חבילת Aspose.3D FOSS עבור Python. מאפיינים: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width, ועוד 2.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
scale_x | float | קריאה/כתיבה | מקבל או מגדיר את קנה המידה x. |
scale_y | float | קריאה/כתיבה | מקבל או מגדיר את scale y. |
scale_width | float | קריאה/כתיבה | מקבל או מגדיר את רוחב הסקלה. |
scale_height | float | קריאה/כתיבה | מקבל או מגדיר את גובה הקנה. |
offset_x | int | קריאה/כתיבה | מקבל או מגדיר את ה-offset x. |
offset_y | int | קריאה/כתיבה | מקבל או מגדיר את ה-offset y. |
offset_width | int | קריאה/כתיבה | מקבל או מגדיר את רוחב ההיסט. |
offset_height | int | קריאה/כתיבה | מקבל או מגדיר את גובה ההזחה. |
שיטות
| חתימה | תיאור |
|---|---|
__init__(left: int, top: int, width: int, height: int) | Calls init(left, top, width, height) במופע זה של RelativeRectangle. |
to_absolute(left: int, top: int, width: int, height: int) → 'Rect' | המר למלבן מוחלט באמצעות ערכי ההתייחסות שניתנו |