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 provides 3 methods for working with RelativeRectangle objects in Typescript programs.
Available methods include: constructor, fromScale, toAbsolute.
All 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.
Description
RelativeRectangle is a class in the Aspose.3D FOSS library for TypeScript that exposes 2 methods and 8 properties for programmatic use.
Core capabilities include: number; number; number. These operations enable developers to integrate relativerectangle functionality directly into TypeScript applications.
The class offers 3 constructor overloads, allowing flexible initialization depending on the calling context.
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) | |
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 |