Use .toArray() instead.
Sets the values of this matrix from the provided array or array-like.
the source array or array-like.
Optional
offset: number(optional) offset into the array-like. Default is 0.
Use .invert() instead.
Optional
throwOnDegenerate: booleanSets 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 scale transform:
x, 0, 0,
0, y, 0,
0, 0, 1
the amount to scale in the X axis.
the amount to scale in the Y axis.
Sets this matrix as a 2D translation transform:
1, 0, x,
0, 1, y,
0, 0, 1
the amount to translate in the X axis.
the amount to translate in the Y axis.
Use vector.applyMatrix3( matrix ) instead.
Returns an array with the values of this matrix, or copies them into the provided array.
The created or 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.
Optional
array: Matrix3TupleOptional
offset: 0Copies he values of this matrix into the provided array-like.
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.
Static
fromCreate a matrix from array
Matrix3
Array
Serializable THREE.js Matrix3