directionBetween method

Direction directionBetween(
  1. int a,
  2. int b
)

Gets a Direction between a and b.

Implementation

Direction directionBetween(int a, int b) =>
    Direction(file(b) - file(a), rank(b) - rank(a));