scaling4
scaling4(
vector
):m4x4f
Defined in: packages/typegpu/src/data/matrix.ts:628
Creates a 4-by-4 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector.
Parameters
Section titled “Parameters”vector
Section titled “vector”A vector of three entries specifying the factor by which to scale in each dimension.
Returns
Section titled “Returns”The scaling matrix.