wgpu-matrix
    Preparing search index...

    Variable uniformScaling

    uniformScaling: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        s: number,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(s: number, dst?: T): T
      • Creates a 4-by-4 matrix which scales a uniform amount in each dimension.

        Type Parameters

        Parameters

        • s: number

          the amount to scale

        • Optionaldst: T

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

        Returns T

        The scaling matrix.