wgpu-matrix
    Preparing search index...

    Variable scale

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

    Type declaration

      • <T extends BaseArgType = number[]>(m: BaseArgType, v: BaseArgType, dst?: T): T
      • Scales the given 4-by-4 matrix in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has three entries.

        Type Parameters

        Parameters

        • m: BaseArgType

          The matrix to be modified.

        • v: BaseArgType

          A vector of three 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 scaled matrix.