Vector.opBinaryRight

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

Examples

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

Meta