Vector.opDispatch

Multiple element access by name. The property is combination of 'x', 'y', 'z', 'w', 'r', 'g', 'b' or 'a'.

  1. auto ref opDispatch()
  2. const(Vector!(T, s.length)) opDispatch()
    struct Vector(T, uint S)
    inout
    const(Vector!(T, s.length))
    opDispatch
    (
    string s
    )
    ()
    if (
    s.length > 1
    )
    if (
    __traits(isArithmetic, T)
    )
  3. T opDispatch(T value)
  4. const(Vector!(T, s.length)) opDispatch(Vector!(T, s.length) value)

Return Value

Type: const(Vector!(T, s.length))

a vector made by selected elements

Meta