Vector.opOpAssign

struct Vector(T, ubyte N)
ref
opOpAssign
(
string op
U
)
(
U rhs
)
if (
N >= 2 &&
N <= 4
)

Examples

auto v1 = Vector2I(2, -8);
v1 += 3;
assert(v1.v == [5, -5]);
const v2 = Vector2I(1, 2);
v1 -= v2;
assert(v1.v == [4, -7]);

Meta