RelativeRectangle

RelativeRectangle

Overview

RelativeRectangle is a class in Aspose.3D FOSS for Typescript.

RelativeRectangle.constructor creates a rectangle with default position and size values.

Properties

NameTypeAccessDescription
scaleXnumberRead/WriteRepresents the horizontal scaling factor of the rectangle
scaleYnumberRead/WriteRepresents the vertical scaling factor of the rectangle
scaleWidthnumberRead/WriteRepresents the scaling factor applied to the rectangle’s width
scaleHeightnumberRead/WriteRepresents the scaling factor applied to the rectangle’s height
offsetXnumberRead/WriteStores the horizontal offset of the rectangle relative to its origin
offsetYnumberRead/Write
offsetWidthnumberRead/WriteStores the additional width offset applied to the rectangle
offsetHeightnumberRead/WriteStores the additional height offset applied to the rectangle

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