wgpu-matrix
    Preparing search index...

    Variable sub

    sub: <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
        a: BaseArgType,
        b: BaseArgType,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
            a: BaseArgType,
            b: BaseArgType,
            dst?: T,
        ): T
      • Subtracts two quaternions.

        Type Parameters

        Parameters

        • a: BaseArgType

          Operand quaternion.

        • b: BaseArgType

          Operand quaternion.

        • Optionaldst: T

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

        Returns T

        A quaternion that is the difference of a and b.