wgpu-matrix
    Preparing search index...

    Variable add

    add: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        a: BaseArgType,
        b: BaseArgType,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
            a: BaseArgType,
            b: BaseArgType,
            dst?: T,
        ): T
      • Adds two vectors; assumes a and b have the same dimension.

        Type Parameters

        Parameters

        • a: BaseArgType

          Operand vector.

        • b: BaseArgType

          Operand vector.

        • Optionaldst: T

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

        Returns T

        A vector that is the sum of a and b.