Skip to content

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.

m4x4f

The matrix to be modified.

v3f

A vector of three entries specifying the factor by which to scale in each dimension.

m4x4f

The scaled matrix.