Vector2.opBinary

Add/Subtract between two vector2's.

  1. Vector2!(T) opBinary(Vector2!(E) otherVector)
    struct Vector2(T)
    const
    opBinary
    (
    string op
    E
    )
    if (
    isNumeric!(E) &&
    (
    (op == "+") ||
    (op == "-")
    )
    )
    if (
    isNumeric!(T) ||
    is(T == bool)
    )
  2. Vector2!(T) opBinary(E num)

Meta