Vector.opBinaryRight

struct Vector(T, ubyte N)
pure nothrow const @safe @nogc
opBinaryRight
(
string op
U
)
(
U lhs
)
if (
N >= 2 &&
N <= 4
)

Examples

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

Meta