Clearly σ is not perpendicular to x or y. If the straight road from A to B slopes constantly either upward or downward then the truck also moves though a vertical distance (height) as it travels along the straight road from A to B. Then the distance s that the truck travels is given again by the Theorem of Pythagoras: