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 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

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)Calls constructor(left, top, width, height) on this RelativeRectangle instance.
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

 English