operator [] method

T operator [](
  1. Vec pos
)

Gets the element at pos.

Implementation

T operator [](Vec pos) => get(pos.x, pos.y);