Yes it is possible, you just need to know a little trigonometry or geometry)
I use this method to calculate and search for the nearest point from the place of clicking on the panorama to make a transition in this direction.
And for the preloader you can just write down all connections and possible transitions with each point, and then just load those panoramas to which you can move from the current one) as realized in my preloader).