operator + method

AxisDirection operator +(
  1. AxisDirection direction
)

Rotates this direction, where AxisDirection.up is the origin.

Implementation

AxisDirection operator +(AxisDirection direction) =>
    AxisDirection.values[(index + direction.index) % 4];