Number of columns.
StaticIdentityA new 3×3 identity matrix.
Number of rows.
Defaults to the 3×3 identity matrix; non-square matrices are all zeros.
Optionalrows: number
Number of rows.
Optionalcolumns: number
Number of columns.
StaticcreateMultiplies a list of transforms in order into one, optionally around a point (default 0, 0: move the point to the origin, apply the transforms, then move it back).
Optionalorigin: Core.Annotations.PointStaticfromCanvas DOMMatrix (a b c d e f) to matrix: [a c e; b d f; 0 0 1].
Row 0, column 0 (horizontal scale).
Row 1, column 0.
Row 0, column 1.
Row 1, column 1 (vertical scale).
Row 0, column 2 (horizontal translation).
Row 1, column 2 (vertical translation).
Returns one entry.
Row index (0-based).
Column index (0-based).
The value at that position.
Gauss-Jordan elimination; returns null for a singular matrix.
StaticmultiplySets one entry.
Row index (0-based).
Column index (0-based).
The new value.
Overwrites the top-left 2×2 with a rotation; counterclockwise when the y axis points up.
OptionalisRadians: booleanSets the horizontal and vertical scale entries.
Horizontal scale.
Vertical scale.
Sets the horizontal scale entry (row 0, column 0).
Horizontal scale.
Sets the vertical scale entry (row 1, column 1).
Vertical scale.
Sets the skew entries.
Horizontal skew factor.
Vertical skew factor.
Sets the horizontal skew entry (row 0, column 1).
Horizontal skew factor.
Sets the vertical skew entry (row 1, column 0).
Vertical skew factor.
Sets the translation entries.
Horizontal translation.
Vertical translation.
Sets the horizontal translation entry (row 0, column 2).
Horizontal translation.
Sets the vertical translation entry (row 1, column 2).
Vertical translation.
Returns the affine part of a 3×3 matrix in canvas order.
[a, b, c, d, e, f], where x' = a·x + c·y + e and y' = b·x + d·y + f.
Transposes in place (square matrices).
A matrix of numbers, 3×3 by default, used for 2D affine transforms on column vectors (p' = M · p).