Vector.opBinary - multiple declarations

Function Vector.opBinary

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

Vector!(T,dimensions) opBinary(string op) (
  Vector!(T,dimensions) otherVector
);

Vector!(T,dimensions) opBinary(string op) (
  T[] otherComponents
);

Function Vector.opBinary

Allows the vector to be used with normal operators Works component-wise, so each operation of the constant is applied to each component

Vector!(T,dimensions) opBinary(string op) (
  T constant
);