Vector.opBinary

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

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

Meta