I am trying to write an algorithm that does the following.
Given the current position (in azimuth and inclination) and the target position (again in A, I), in which direction should I move in order to travel along the shortest path. The return value may be something like a vector A = -1, i = +0.5, which can then be scaled for step size / time.
The shortest path can be found using a large circle , it is easy to visualize, but it is difficult to implement, as shown above, because my coordinate system is not continuous.
My coordinate system is as follows (imagine facing a sphere)
The azimuth is 0 ~ pi when moving along the equator along the front side, 0 ~ -pi when moving along the equator along the back side.
The slope is 0 ~ + pi when moving from the top to the bottom of the sphere.
So, given this inconsistent coordinate system, how do I create a decision function that says βincrease Aβ to move along the shortest path?
source share