wgpu-matrix
    Preparing search index...

    Variable scaling

    scaling: <T extends BaseArgType = number[]>(v: BaseArgType, dst?: T) => T

    Type declaration

      • <T extends BaseArgType = number[]>(v: BaseArgType, dst?: T): T
      • Creates a 3-by-3 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has two entries.

        Type Parameters

        Parameters

        • v: BaseArgType

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

        • Optionaldst: T

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

        Returns T

        The scaling matrix.