Vec.opDispatch

Access the components by swizzling.

  1. T opDispatch [@property getter]
  2. T opDispatch [@property setter]
  3. auto opDispatch [@property getter]
    struct Vec(T, size_t N)
    @property const
    opDispatch
    (
    string name
    )
    ()
    if (
    name.length > 1
    )
    if (
    N > 0 &&
    isNumeric!T
    )
  4. Vec!(U, num) opDispatch [@property setter]

Meta