class Mat {}
Constructor
Constructs a new instance of the Mat
class
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Properties
a
a: number
b
b: number
c
c: number
d
d: number
e
e: number
f
f: number
Methods
Absolute()
static
Parameters
Name | Description |
---|---|
|
Returns
applyToBounds()
static
Parameters
Returns
applyToXY()
static
static applyToXY(m: MatLike, x: number, y: number): number[]
Parameters
Name | Description |
---|---|
| |
|
|
|
|
Returns
number[]
Cast()
static
Parameters
Name | Description |
---|---|
|
Returns
Compose()
static
Parameters
Name | Description |
---|---|
|
|
Returns
Decompose()
static
static Decompose(m: MatLike): {
rotation: number
scaleX: number
scaleY: number
x: number
y: number
}
Parameters
Name | Description |
---|---|
|
Returns
{
rotation: number
scaleX: number
scaleY: number
x: number
y: number
}
From()
static
Parameters
Name | Description |
---|---|
|
Returns
Identity()
static
static Identity(): Mat
Inverse()
static
Parameters
Name | Description |
---|---|
|
Returns
Multiply()
static
Parameters
Returns
Point()
static
Parameters
Name | Description |
---|---|
|
Returns
Rotate()
static
static Rotate(r: number, cx?: number, cy?: number): Mat
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
Rotation()
static
static Rotation(m: MatLike): number
Parameters
Name | Description |
---|---|
|
Returns
number
Scale()
static
static Scale(x: number, y: number): MatModel
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
Smooth()
static
Parameters
Name | Description |
---|---|
| |
|
|
Returns
Translate()
static
static Translate(x: number, y: number): Mat
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
applyToPoint()
Parameters
Name | Description |
---|---|
|
Returns
applyToPoints()
Parameters
Name | Description |
---|---|
|
|
Returns
Vec[]
clone()
clone(): Mat
decompose()
decompose(): {
rotation: number
scaleX: number
scaleY: number
x: number
y: number
}
decomposed()
decomposed(): {
rotation: number
scaleX: number
scaleY: number
x: number
y: number
}
equals()
Parameters
Returns
boolean
identity()
identity(): this
invert()
invert(): this
multiply()
Parameters
Returns
this
point()
point(): Vec
rotate()
rotate(r: number, cx?: number, cy?: number): Mat
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
rotation()
rotation(): number
scale()
scale(x: number, y: number): this
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
this
setTo()
setTo(model: MatModel): this
Parameters
Name | Description |
---|---|
|
Returns
this
toCssString()
toCssString(): string
translate()
translate(x: number, y: number): Mat
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
Prev
HistoryManagerNext
Point2d