Skip to content

scale4

const scale4: DualFn<(matrix, vector) => m4x4f>

Defined in: packages/typegpu/src/std/matrix.ts:42

Scales the given 4-by-4 matrix in each dimension by an amount given by the corresponding entry in the given vector.

The matrix to be modified.

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

The scaled matrix.