Function cross

  • Computes the cross product of two vectors; assumes both vectors have three entries.

    Type Parameters

    Parameters

    • a: BaseArgType

      Operand vector.

    • b: BaseArgType

      Operand vector.

    • Optional dst: T

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

    Returns T

    The vector of a cross b.