Vector2.opBinary

Multiply/Divide a vector with a numaric value.

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

Meta