RelativeRectangle

General

RelativeRectangle és una classe de l’Aspose.3d per a Typescript. Hereta del: ゚RelativeRectangle⌒ .

RelativeRectangle.constructor crea un rectangle amb tots els desplaçaments i escales establerts a zero.

Propietats

NameTypeAccessDescription
scaleXnumberReadStores the horizontal offset factor relative to a base rectangle
scaleYnumberRead
scaleWidthnumberReadStores the horizontal scaling factor for width
scaleHeightnumberReadStores the vertical scaling factor for height
offsetXnumberReadStores the absolute X offset component
offsetYnumberReadStores the absolute Y offset component
offsetWidthnumberReadStores the absolute width component
offsetHeightnumberReadStores the absolute height component

Mètodes

SignatureDescription
constructor()Initializes offsets with left/top and scales with width/height
constructor(left: number, top: number, width: number, height: number)
constructor()
toAbsolute(left: number, top: number, width: number, height: number)RectConverts the relative rectangle to an absolute Rect using the given base dimensions
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number)RelativeRectangleCreates a RelativeRectangle from scale factors
 Català