Skip to content

Interface: IMatrix

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

a

a: number

Inherited from

IMatrixWithScaleData.a

Defined in

leafer/packages/interface/src/math/IMath.ts:156


b

b: number

Inherited from

IMatrixWithScaleData.b

Defined in

leafer/packages/interface/src/math/IMath.ts:157


c

c: number

Inherited from

IMatrixWithScaleData.c

Defined in

leafer/packages/interface/src/math/IMath.ts:158


d

d: number

Inherited from

IMatrixWithScaleData.d

Defined in

leafer/packages/interface/src/math/IMath.ts:159


e

e: number

Inherited from

IMatrixWithScaleData.e

Defined in

leafer/packages/interface/src/math/IMath.ts:160


f

f: number

Inherited from

IMatrixWithScaleData.f

Defined in

leafer/packages/interface/src/math/IMath.ts:161


scaleX

scaleX: number

Inherited from

IMatrixWithScaleData.scaleX

Defined in

leafer/packages/interface/src/math/IMath.ts:165


scaleY

scaleY: number

Inherited from

IMatrixWithScaleData.scaleY

Defined in

leafer/packages/interface/src/math/IMath.ts:166

Methods

set

set(a, b, c, d, e, f): IMatrix

Parameters

NameType
anumber | IMatrixData
bnumber
cnumber
dnumber
enumber
fnumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:195


setWith

setWith(dataWithScale): IMatrix

Parameters

NameType
dataWithScaleIMatrixWithScaleData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:196


get

get(): IMatrixData

Returns

IMatrixData

Defined in

leafer/packages/interface/src/math/IMath.ts:197


clone

clone(): IMatrix

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:198


translate

translate(x, y): IMatrix

Parameters

NameType
xnumber
ynumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:200


translateInner

translateInner(x, y): IMatrix

Parameters

NameType
xnumber
ynumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:201


scale

scale(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:203


scaleWith

scaleWith(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:204


scaleOfOuter

scaleOfOuter(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:205


scaleOfInner

scaleOfInner(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:206


rotate

rotate(angle): IMatrix

Parameters

NameType
anglenumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:208


rotateOfOuter

rotateOfOuter(origin, angle): IMatrix

Parameters

NameType
originIPointData
anglenumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:209


rotateOfInner

rotateOfInner(origin, angle): IMatrix

Parameters

NameType
originIPointData
anglenumber

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:210


skew

skew(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:212


skewOfOuter

skewOfOuter(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:213


skewOfInner

skewOfInner(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:214


multiply

multiply(child): IMatrix

Parameters

NameType
childIMatrixData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:216


multiplyParent

multiplyParent(parent): IMatrix

Parameters

NameType
parentIMatrixData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:217


divide

divide(child): IMatrix

Parameters

NameType
childIMatrixData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:219


divideParent

divideParent(parent): IMatrix

Parameters

NameType
parentIMatrixData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:220


invert

invert(): IMatrix

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:221


invertWith

invertWith(): IMatrix

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:222


toOuterPoint

toOuterPoint(inner, to?, distance?): void

Parameters

NameType
innerIPointData
to?IPointData
distance?boolean

Returns

void

Defined in

leafer/packages/interface/src/math/IMath.ts:224


toInnerPoint

toInnerPoint(outer, to?, distance?): void

Parameters

NameType
outerIPointData
to?IPointData
distance?boolean

Returns

void

Defined in

leafer/packages/interface/src/math/IMath.ts:225


setLayout

setLayout(data, origin?, around?): IMatrix

Parameters

NameType
dataILayoutData
origin?IPointData
around?IPointData

Returns

IMatrix

Defined in

leafer/packages/interface/src/math/IMath.ts:227


getLayout

getLayout(origin?, around?, firstSkewY?): ILayoutData

Parameters

NameType
origin?IPointData
around?IPointData
firstSkewY?boolean

Returns

ILayoutData

Defined in

leafer/packages/interface/src/math/IMath.ts:228


withScale

withScale(scaleX?, scaleY?): IMatrixWithScaleData

Parameters

NameType
scaleX?number
scaleY?number

Returns

IMatrixWithScaleData

Defined in

leafer/packages/interface/src/math/IMath.ts:230


reset

reset(): void

Returns

void

Defined in

leafer/packages/interface/src/math/IMath.ts:232

Released under the MIT License.