operator + method

Direction operator +(
  1. Direction other
)

Implementation

Direction operator +(Direction other) => Direction(h + other.h, v + other.v);