isUpward method

bool isUpward()
inherited

Determines the upward or downward direction

Implementation

bool isUpward() => toY >= fromY;