Constructors
constructor
- new AffineMatrix(a?: number, b?: number, tx?: number, c?: number, d?: number, ty?: number): AffineMatrix
-
Parameters
-
a: number = 1
-
b: number = 0
-
tx: number = 0
-
c: number = 0
-
d: number = 1
-
ty: number = 0
Accessors
isNaNPoisoned
- get isNaNPoisoned(): boolean
-
Returns boolean
Methods
Private
_innerMultiply
- _innerMultiply(ma: number, mb: number, mtx: number, mc: number, md: number, mty: number): void
-
Parameters
-
ma: number
-
mb: number
-
mtx: number
-
mc: number
-
md: number
-
mty: number
Returns void
identity
- identity(): void
-
Returns void
multiplyVector
- multiplyVector(vec: number[]): void
-
Returns void
multiplyVectorInvert
- multiplyVectorInvert(vec: number[]): void
-
Returns void
multiplyVectorInvert_
- multiplyVectorInvert_(vec: number[]): void
-
Returns void
rotate
- rotate(angleRadian: number): void
-
Returns void
rotateDegree
- rotateDegree(angleDegree: number): void
-
Returns void
scale
- scale(sx: number, sy: number): void
-
Returns void
skew
- skew(sx: number, sy: number): void
-
Returns void
toMatrix4
- toMatrix4(): number[]
-
Returns number[]
translate
- translate(x: number, y: number): void
-
Returns void
In-Place multiplication (modifies this) const a = new AffineMatrix(...); const b = new AffineMatrix(...);
a.multiply(b) a <= a * b
For the pattern c = a * b use:
const c = a.copy().multiply(b);