Class: Matrix
Implements
Table of contents
Constructors
Properties
Methods
- set
- setWith
- get
- clone
- translate
- translateInner
- scale
- scaleWith
- scaleOfOuter
- scaleOfInner
- rotate
- rotateOfOuter
- rotateOfInner
- skew
- skewOfOuter
- skewOfInner
- multiply
- multiplyParent
- divide
- divideParent
- invert
- invertWith
- toOuterPoint
- toInnerPoint
- setLayout
- getLayout
- withScale
- reset
Constructors
constructor
• new Matrix(a?
, b?
, c?
, d?
, e?
, f?
): Matrix
Parameters
Name | Type |
---|---|
a? | number | IMatrixData |
b? | number |
c? | number |
d? | number |
e? | number |
f? | number |
Returns
Defined in
leafer/packages/math/src/Matrix.ts:17
Properties
a
• a: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:7
b
• b: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:8
c
• c: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:9
d
• d: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:10
e
• e: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:11
f
• f: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:12
scaleX
• scaleX: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:14
scaleY
• scaleY: number
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:15
Methods
set
▸ set(a?
, b?
, c?
, d?
, e?
, f?
): IMatrix
Parameters
Name | Type |
---|---|
a? | number | IMatrixData |
b? | number |
c? | number |
d? | number |
e? | number |
f? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:21
setWith
▸ setWith(dataWithScale
): IMatrix
Parameters
Name | Type |
---|---|
dataWithScale | IMatrixWithScaleData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:26
get
▸ get(): IMatrixData
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:33
clone
▸ clone(): IMatrix
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:38
translate
▸ translate(x
, y
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:43
translateInner
▸ translateInner(x
, y
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:48
scale
▸ scale(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:53
scaleWith
▸ scaleWith(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:58
scaleOfOuter
▸ scaleOfOuter(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:65
scaleOfInner
▸ scaleOfInner(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:69
rotate
▸ rotate(angle
): IMatrix
Parameters
Name | Type |
---|---|
angle | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:74
rotateOfOuter
▸ rotateOfOuter(origin
, angle
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
angle | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:79
rotateOfInner
▸ rotateOfInner(origin
, angle
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
angle | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:84
skew
▸ skew(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:90
skewOfOuter
▸ skewOfOuter(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:95
skewOfInner
▸ skewOfInner(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:100
multiply
▸ multiply(child
): IMatrix
Parameters
Name | Type |
---|---|
child | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:106
multiplyParent
▸ multiplyParent(parent
): IMatrix
Parameters
Name | Type |
---|---|
parent | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:111
divide
▸ divide(child
): IMatrix
Parameters
Name | Type |
---|---|
child | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:117
divideParent
▸ divideParent(parent
): IMatrix
Parameters
Name | Type |
---|---|
parent | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:122
invert
▸ invert(): IMatrix
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:127
invertWith
▸ invertWith(): IMatrix
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:132
toOuterPoint
▸ toOuterPoint(inner
, to?
, distance?
): void
Parameters
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:140
toInnerPoint
▸ toInnerPoint(outer
, to?
, distance?
): void
Parameters
Name | Type |
---|---|
outer | IPointData |
to? | IPointData |
distance? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:144
setLayout
▸ setLayout(data
, origin?
, around?
): IMatrix
Parameters
Name | Type |
---|---|
data | ILayoutData |
origin? | IPointData |
around? | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:149
getLayout
▸ getLayout(origin?
, around?
, firstSkewY?
): ILayoutData
Parameters
Name | Type |
---|---|
origin? | IPointData |
around? | IPointData |
firstSkewY? | boolean |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:154
withScale
▸ withScale(scaleX?
, scaleY?
): IMatrixWithScaleData
Parameters
Name | Type |
---|---|
scaleX? | number |
scaleY? | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Matrix.ts:158
reset
▸ reset(): void
Returns
void