The total distance covered is r\/cos ( Î ) , where r is the straight-line distance from P to the origin .
The total distance covered is , where is the straight-line distance from to the origin .