The matrix component at the first row, first column.
The matrix component at the second row, first column.
The matrix component at the first row, second column.
The matrix component at the second row, second column.
The matrix component at the third row, first column.
The matrix component at the third row, second column.
Adds the given matrix to this matrix component-wise.
The parameters a-f form a 2x3 matrix and are arranged like this.
+---+---+---+
| a | c | e |
| b | d | f |
+---+---+---+
The matrix component at the first row, first column.
The matrix component at the second row, first column.
The matrix component at the first row, second column.
The matrix component at the second row, second column.
The matrix component at the third row, first column.
The matrix component at the third row, second column.
Creates a copy of this matrix and returns it.
A new matrix that is equal to this matrix.
Creates a new matrix that represents the inverse affine transformation of this matrix.
A new matrix that represents the inverse affine transformation of this matrix.
Applies a rotation to this matrix.
The angle of the rotation, in degrees.
Horizontal coordinate of the origin of the rotation.
Vertical coordinate of the origin of the rotation.
Applies a scaling operation to this matrix.
Horizontal coordinate of the origin of the scaling.
Vertical coordinate of the origin of the scaling. If not specified, default to same value as x
.
Applies a scaling operation to this matrix.
Horizontal coordinate of the origin of the scaling.
Vertical coordinate of the origin of the scaling.
Amount by which to scale in the horizontal direction.
Amount by which to scale in the vertical direction.
Splits matrix into primitive transformations.
Information regarding how this matrix can be produced by applying a chain of primitive transformations.
Creates a transform string that represents given matrix, such as t0,0s1,1,0,0r0,0,0
.
A CSS transform string that represents given matrix.
Applies a translation to this matrix.
Applies this transformation matrix to the given point and returns the x coordinate of that transformed point. See also y.
Horizontal coordinate of a point to transform.
Vertical coordinate of a point to transform.
Applies this transformation matrix to the given point and returns the y coordinate of that transformed point. See also x.
Horizontal coordinate of a point to transform.
Vertical coordinate of a point to transform.
Generated using TypeDoc
Represents a 2x3 matrix for affine transformations in homogenous coordinates. This allows for translations as well as rotations, scaling, and shearing.
The six components a-f of a matrix are arranged like this: