Optional
v0: numbervalue for element 0
Optional
v1: numbervalue for element 1
Optional
v2: numbervalue for element 2
Optional
v3: numbervalue for element 3
Optional
v4: numbervalue for element 4
Optional
v5: numbervalue for element 5
Optional
v6: numbervalue for element 6
Optional
v7: numbervalue for element 7
Optional
v8: numbervalue for element 8
matrix created from values.
Create a Mat3 from values
Note: Since passing in a raw JavaScript array is valid in all circumstances, if you want to force a JavaScript array into a Mat3's specified type it would be faster to use
Note: a consequence of the implementation is if your Mat3Type =
Array
instead ofFloat32Array
orFloat64Array
then any values you don't pass in will be undefined. Usually this is not an issue since (a) usingArray
is rare and (b) usingmat3.create
is usually used to create a Mat3 to be filled out as in