DISTANCE
Chat with our AI personalities
It is simply the difference between their y coordinates.
Horizontal
The absolute difference in the vertical direction is zero but the absolute difference in the horizontal direction will be the horizontal distance - which is the distance between the points.
The distance between (x, y1) and (x, y2) is abs(y1 - y2) or |y1 - y2|.
Vertical.