Vector.opBinary

Processes vector addition and subtraction.

  1. Self opBinary(Vector!(Size, SumType, SumAccessors, Orientation) summand)
    struct Vector(size_t Size, Type = float, string Accessors = "", string Orientation = "horizontal")
    @trusted pure nothrow
    Self
    opBinary
    (
    string op
    SumType
    alias string SumAccessors
    )
    (
    in Vector!(Size, SumType, SumAccessors, Orientation) summand
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    is(SumType : Type)
    )
    if (
    Size > 0
    )
  2. Self opBinary(Number num)
  3. auto opBinary(Factor factor)

Meta