RelativeRectangle

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

NameTypeAccessDescription
scaleXnumberRead/WriteGets the scale x.
scaleYnumberRead/WriteGets the scale y.
scaleWidthnumberRead/WriteGets the scale width.
scaleHeightnumberRead/WriteGets the scale height.
offsetXnumberRead/WriteGets the offset x.
offsetYnumberRead/WriteGets the offset y.
offsetWidthnumberRead/WriteGets the offset width.
offsetHeightnumberRead/WriteGets the offset height.

Methods

SignatureDescription
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)RectConverts this relative rectangle to an absolute Rect using the given bounds
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number)RelativeRectangleCreates a new RelativeRectangle from the provided scaling factors

See Also