Optimal Direction-Dependent Path Planning for Autonomous Vehicles