Question: how to calculate distance between two parallel lines?
Answer: The shortest distance between two parallel lines is the length of the perpendicular segment between them. It doesn't matter which perpendicular line you choose, as long as the two points are on the lines.