RelativeRectangle
Overview
RelativeRectangle is a class in Aspose.3D FOSS for Typescript.
RelativeRectangle.constructor creates a rectangle with default position and size values.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
scaleX | number | Read/Write | Represents the horizontal scaling factor of the rectangle |
scaleY | number | Read/Write | Represents the vertical scaling factor of the rectangle |
scaleWidth | number | Read/Write | Represents the scaling factor applied to the rectangle’s width |
scaleHeight | number | Read/Write | Represents the scaling factor applied to the rectangle’s height |
offsetX | number | Read/Write | Stores the horizontal offset of the rectangle relative to its origin |
offsetY | number | Read/Write | |
offsetWidth | number | Read/Write | Stores the additional width offset applied to the rectangle |
offsetHeight | number | Read/Write | Stores the additional height offset applied to the rectangle |
Methods
| Signature | Description |
|---|---|
constructor() | Initializes the rectangle with the specified left, top, width, and height |
constructor(left: number, top: number, width: number, height: number) | |
constructor() | |
toAbsolute(left: number, top: number, width: number, height: number) → Rect | Converts this relative rectangle to an absolute Rect using the given bounds |
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number) → RelativeRectangle | Creates a new RelativeRectangle from the provided scaling factors |