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


b

b: number

Inherited from

IMatrixWithScaleData.b

Defined in

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


c

c: number

Inherited from

IMatrixWithScaleData.c

Defined in

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


d

d: number

Inherited from

IMatrixWithScaleData.d

Defined in

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


e

e: number

Inherited from

IMatrixWithScaleData.e

Defined in

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


f

f: number

Inherited from

IMatrixWithScaleData.f

Defined in

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


scaleX

scaleX: number

Inherited from

IMatrixWithScaleData.scaleX

Defined in

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


scaleY

scaleY: number

Inherited from

IMatrixWithScaleData.scaleY

Defined in

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

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


setWith

setWith(dataWithScale): IMatrix

Parameters

NameType
dataWithScaleIMatrixWithScaleData

Returns

IMatrix

Defined in

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


get

get(): IMatrixData

Returns

IMatrixData

Defined in

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


clone

clone(): IMatrix

Returns

IMatrix

Defined in

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


translate

translate(x, y): IMatrix

Parameters

NameType
xnumber
ynumber

Returns

IMatrix

Defined in

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


translateInner

translateInner(x, y): IMatrix

Parameters

NameType
xnumber
ynumber

Returns

IMatrix

Defined in

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


scale

scale(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

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


scaleWith

scaleWith(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

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


scaleOfOuter

scaleOfOuter(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

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


scaleOfInner

scaleOfInner(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

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


rotate

rotate(angle): IMatrix

Parameters

NameType
anglenumber

Returns

IMatrix

Defined in

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


rotateOfOuter

rotateOfOuter(origin, angle): IMatrix

Parameters

NameType
originIPointData
anglenumber

Returns

IMatrix

Defined in

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


rotateOfInner

rotateOfInner(origin, angle): IMatrix

Parameters

NameType
originIPointData
anglenumber

Returns

IMatrix

Defined in

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


skew

skew(x, y?): IMatrix

Parameters

NameType
xnumber
y?number

Returns

IMatrix

Defined in

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


skewOfOuter

skewOfOuter(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

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


skewOfInner

skewOfInner(origin, x, y?): IMatrix

Parameters

NameType
originIPointData
xnumber
y?number

Returns

IMatrix

Defined in

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


multiply

multiply(child): IMatrix

Parameters

NameType
childIMatrixData

Returns

IMatrix

Defined in

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


multiplyParent

multiplyParent(parent): IMatrix

Parameters

NameType
parentIMatrixData

Returns

IMatrix

Defined in

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


divide

divide(child): IMatrix

Parameters

NameType
childIMatrixData

Returns

IMatrix

Defined in

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


divideParent

divideParent(parent): IMatrix

Parameters

NameType
parentIMatrixData

Returns

IMatrix

Defined in

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


invert

invert(): IMatrix

Returns

IMatrix

Defined in

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


invertWith

invertWith(): IMatrix

Returns

IMatrix

Defined in

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


toOuterPoint

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

Parameters

NameType
innerIPointData
to?IPointData
distance?boolean

Returns

void

Defined in

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


toInnerPoint

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

Parameters

NameType
outerIPointData
to?IPointData
distance?boolean

Returns

void

Defined in

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


setLayout

setLayout(data, origin?): IMatrix

Parameters

NameType
dataILayoutData
origin?IPointData

Returns

IMatrix

Defined in

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


getLayout

getLayout(origin?, firstSkewY?): ILayoutData

Parameters

NameType
origin?IPointData
firstSkewY?boolean

Returns

ILayoutData

Defined in

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


withScale

withScale(scaleX?, scaleY?): IMatrixWithScaleData

Parameters

NameType
scaleX?number
scaleY?number

Returns

IMatrixWithScaleData

Defined in

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


reset

reset(): void

Returns

void

Defined in

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

Released under the MIT License.