Function cross

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

    Parameters

    • a: Vec3

      Operand vector.

    • b: Vec3

      Operand vector.

    • Optional dst: Vec3

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

    Returns Vec3

    The vector of a cross b.