scale4
scale4(
matrix
,vector
):m4x4f
Defined in: packages/typegpu/src/std/matrix.ts:37
Scales the given 4-by-4 matrix in each dimension by an amount given by the corresponding entry in the given vector.
Parameters
Section titled “Parameters”matrix
Section titled “matrix”The matrix to be modified.
vector
Section titled “vector”A vector of three entries specifying the factor by which to scale in each dimension.
Returns
Section titled “Returns”The scaled matrix.