Hello,
The calibration by line does not have any notion of horizontal or vertical. It maps a 2D distance in pixels to a distance in the specified unit. At the bottom of it it is just a scaling factor from pixels to centimeters or whatever. 2D distances are computed using the usual Euclidean distance.
This can give wrong results if you have a video with rectangular pixels that has not been automatically detected, (video looks squashed or stretched). More commonly, if the plane of motion is not perpendicular to the camera optical axis. For this you can use the perspective coordinate system.