Function sub

  • Subtracts two vectors.

    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

    A vector that is the difference of a and b.