Vector.opBinary

Componentwise binary vector-skalar operation: addition, subtraction, multiplication, division

  1. Vector opBinary(valueType s)
    struct Vector(type, int dim)
    @safe pure nothrow
    opBinary
    const
    (
    string op
    )
    (
    valueType s
    )
    if (
    (op == "+") ||
    (op == "-")
    ||
    (op == "*")
    ||
    (op == "/")
    )
    if (
    (dim >= 2) &&
    (dim <= 4)
    )
  2. Vector opBinary(Vector v)

Meta