• Creates a 4-by-4 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has three entries.

    Returns

    The scaling matrix.

    Member Of

    module:twgl/m4

    Parameters

    • v: any

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

    • Optional dst: Float32Array

      matrix to hold result. If not passed a new one is created.

    Returns Float32Array

Generated using TypeDoc