Vec.opDispatch

Named accessor for common vector fields, which allows you to get the value of specific elements in the vector according to conventional names. - x for the first element. - y for the second element. - z for the third element. - w for the fourth element.

  1. T opDispatch()
    struct Vec(T, size_t size)
    const @nogc
    T
    opDispatch
    (
    string s
    )
    ()
    if (
    isNumeric!T &&
    size > 0
    )
  2. void opDispatch(V value)

Return Value

Type: T

The value of the specified element.

Meta