RelativeRectangle
General
RelativeRectangle és una classe de l’Aspose.3d per a Typescript. Hereta del: ゚RelativeRectangle⌒ .
RelativeRectangle.constructor crea un rectangle amb tots els desplaçaments i escales establerts a zero.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
scaleX | number | Read | Stores the horizontal offset factor relative to a base rectangle |
scaleY | number | Read | |
scaleWidth | number | Read | Stores the horizontal scaling factor for width |
scaleHeight | number | Read | Stores the vertical scaling factor for height |
offsetX | number | Read | Stores the absolute X offset component |
offsetY | number | Read | Stores the absolute Y offset component |
offsetWidth | number | Read | Stores the absolute width component |
offsetHeight | number | Read | Stores the absolute height component |
Mètodes
| Signature | Description |
|---|---|
constructor() | Initializes offsets with left/top and scales with width/height |
constructor(left: number, top: number, width: number, height: number) | |
constructor() | |
toAbsolute(left: number, top: number, width: number, height: number) → Rect | Converts the relative rectangle to an absolute Rect using the given base dimensions |
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number) → RelativeRectangle | Creates a RelativeRectangle from scale factors |