Interface: IMatrix
Hierarchy
↳
IMatrix
Implemented by
Table of contents
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
Properties
a
• a: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:156
b
• b: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:157
c
• c: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:158
d
• d: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:159
e
• e: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:160
f
• f: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:161
scaleX
• scaleX: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:165
scaleY
• scaleY: number
Inherited from
Defined in
leafer/packages/interface/src/math/IMath.ts:166
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
Defined in
leafer/packages/interface/src/math/IMath.ts:195
setWith
▸ setWith(dataWithScale
): IMatrix
Parameters
Name | Type |
---|---|
dataWithScale | IMatrixWithScaleData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:196
get
▸ get(): IMatrixData
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:197
clone
▸ clone(): IMatrix
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:198
translate
▸ translate(x
, y
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:200
translateInner
▸ translateInner(x
, y
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:201
scale
▸ scale(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:203
scaleWith
▸ scaleWith(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:204
scaleOfOuter
▸ scaleOfOuter(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:205
scaleOfInner
▸ scaleOfInner(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:206
rotate
▸ rotate(angle
): IMatrix
Parameters
Name | Type |
---|---|
angle | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:208
rotateOfOuter
▸ rotateOfOuter(origin
, angle
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
angle | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:209
rotateOfInner
▸ rotateOfInner(origin
, angle
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
angle | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:210
skew
▸ skew(x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:212
skewOfOuter
▸ skewOfOuter(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:213
skewOfInner
▸ skewOfInner(origin
, x
, y?
): IMatrix
Parameters
Name | Type |
---|---|
origin | IPointData |
x | number |
y? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:214
multiply
▸ multiply(child
): IMatrix
Parameters
Name | Type |
---|---|
child | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:216
multiplyParent
▸ multiplyParent(parent
): IMatrix
Parameters
Name | Type |
---|---|
parent | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:217
divide
▸ divide(child
): IMatrix
Parameters
Name | Type |
---|---|
child | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:219
divideParent
▸ divideParent(parent
): IMatrix
Parameters
Name | Type |
---|---|
parent | IMatrixData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:220
invert
▸ invert(): IMatrix
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:221
invertWith
▸ invertWith(): IMatrix
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:222
toOuterPoint
▸ toOuterPoint(inner
, to?
, distance?
): void
Parameters
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/math/IMath.ts:224
toInnerPoint
▸ toInnerPoint(outer
, to?
, distance?
): void
Parameters
Name | Type |
---|---|
outer | IPointData |
to? | IPointData |
distance? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/math/IMath.ts:225
setLayout
▸ setLayout(data
, origin?
, around?
): IMatrix
Parameters
Name | Type |
---|---|
data | ILayoutData |
origin? | IPointData |
around? | IPointData |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:227
getLayout
▸ getLayout(origin?
, around?
, firstSkewY?
): ILayoutData
Parameters
Name | Type |
---|---|
origin? | IPointData |
around? | IPointData |
firstSkewY? | boolean |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:228
withScale
▸ withScale(scaleX?
, scaleY?
): IMatrixWithScaleData
Parameters
Name | Type |
---|---|
scaleX? | number |
scaleY? | number |
Returns
Defined in
leafer/packages/interface/src/math/IMath.ts:230
reset
▸ reset(): void
Returns
void