Distance between points: vertical or horizontal