RelativeRectangle
Overview
RelativeRectangle is a class in Aspose.3D FOSS for TypeScript.
RelativeRectangle.constructor creates a rectangle with default position and size values.
This class declares 5 methods for RelativeRectangle objects in TypeScript programs.
Available methods include: constructor, fromScale, toAbsolute.
Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.
Properties: offsetHeight, offsetWidth, offsetX, offsetY, scaleHeight, scaleWidth, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
scaleX | number | Read/Write | Gets the scale x. |
scaleY | number | Read/Write | Gets the scale y. |
scaleWidth | number | Read/Write | Gets the scale width. |
scaleHeight | number | Read/Write | Gets the scale height. |
offsetX | number | Read/Write | Gets the offset x. |
offsetY | number | Read/Write | Gets the offset y. |
offsetWidth | number | Read/Write | Gets the offset width. |
offsetHeight | number | Read/Write | Gets the offset height. |
Methods
| Signature | Description |
|---|---|
constructor() | Initializes the rectangle with the specified left, top, width, and height |
constructor(left: number, top: number, width: number, height: number) | Calls constructor(left, top, width, height) on this RelativeRectangle instance. |
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 |