Vector.opBinary

Allows the vector to be used with normal operators Works component-wise (eg. (3, 2, 1) + (1, 2, 3) = (4, 4, 4))

  1. Vector!(T, dimensions) opBinary(Vector!(T, dimensions) otherVector)
  2. Vector!(T, dimensions) opBinary(T[] otherComponents)
    class Vector(T, uint dimensions)
    Vector!(T, dimensions)
    opBinary
    (
    string op
    )
  3. Vector!(T, dimensions) opBinary(T constant)

Meta