Returns forward distance from from to to in the ring.
from
to
int distance(int from, int to) => _normalize(to - from, capacity);