Deriving an Obstacle-Avoiding Shortest Path in Continuous Space: A Spatial Approach