wgpu-matrix
    Preparing search index...

    Variable cross

    cross: <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
      • Computes the cross product of two vectors; assumes both vectors have three entries.

        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

        The vector of a cross b.