Creates an identity matrix.
Creates a 3x3 matrix with the given arguments in row-major order.
Array with matrix values.
[1, 0, 0, 0, 1, 0, 0, 0, 1]
copy(m:T):T;
Use .toArray() instead.
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.
Sets this matrix as a 2D translation transform:
1, 0, x,
0, 1, y,
0, 0, 1
Use vector.applyMatrix3( matrix ) instead.
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.
( class Matrix3 implements Matrix )