Vector.opBinaryRight

Returns a new vector of greater dimension by copying elements and prepending scalar.

  1. Vector opBinaryRight(T scalar)
  2. auto opBinaryRight(U scalar)
  3. Vector!(CommonType!(U, T), max(N, M)) opBinaryRight(U[M] other)
  4. Vector!(T, N + 1) opBinaryRight(T scalar)
    struct Vector(T, uint N)
    pure const
    Vector!(T, N + 1)
    opBinaryRight
    (
    string op : "~"
    )
    (
    const T scalar
    )
    if (
    N > 0
    )
  5. Vector!(T, N + M) opBinaryRight(T[M] other)

Examples

Vec2 v = [1, 2];
Vec3 v2 = 0f ~ v;
assert(0 ~ v == Vec3(0, 1, 2));

Meta