mat3x3f
Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32. Also a constructor function for this matrix type.
Examples
Section titled “Examples”const zero3x3 = mat3x3f(); // filled with zeros
const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8);mat.columns[0] // vec3f(0, 1, 2)mat.columns[1] // vec3f(3, 4, 5)mat.columns[2] // vec3f(6, 7, 8)
const mat = mat3x3f( vec3f(0, 1, 2), // column 0 vec3f(2, 3, 4), // column 1 vec3f(5, 6, 7), // column 2);
const buffer = root.createBuffer(d.mat3x3f, d.mat3x3f()); // buffer holding a d.mat3x3f value, with an initial value of mat3x3f filled with zeros
Call Signature
Section titled “Call Signature”mat3x3f(…
elements
):m3x3f
Defined in: packages/typegpu/src/data/matrix.ts:791
Parameters
Section titled “Parameters”elements
Section titled “elements”…[number
, number
, number
, number
, number
, number
, number
, number
, number
]
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”mat3x3f(…
columns
):m3x3f
Defined in: packages/typegpu/src/data/matrix.ts:791
Parameters
Section titled “Parameters”columns
Section titled “columns”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”mat3x3f():
m3x3f
Defined in: packages/typegpu/src/data/matrix.ts:791