Creates an identity matrix.
Creates a 3x3 matrix with the given arguments in row-major order.
copy(m:T):T;
Sets this matrix as a 2D translation transform:
1, 0, x,
0, 1, y,
0, 0, 1
Sets this matrix as a 2D rotational transformation by theta radians. The resulting matrix will be:
cos(θ) -sin(θ) 0
sin(θ) cos(θ) 0
0 0 1
Rotation angle in radians. Positive values rotate counterclockwise.
Returns an array with the values of this matrix, or copies them into the provided array.
Optional
array: number[](optional) array to store the matrix to. If this is not provided, a new array will be created.
Optional
offset: number(optional) optional offset into the array.
The created or provided array.
Optional
array: Matrix3TupleOptional
offset: 0Copies he values of this matrix into the provided array-like.
Optional
array: ArrayLike<number>array-like to store the matrix to.
Optional
offset: number(optional) optional offset into the array-like.
The provided array-like.
Use vector.applyMatrix3( matrix ) instead.
Use .toArray() instead.
( class Matrix3 implements Matrix )