isUpward method

bool isUpward()

Determines the upward or downward direction

Implementation

bool isUpward() => toY >= fromY;