As the originator of this thread, I can verify that the question in its title was intended to get people's attention, and that the actual intent of the question was spelled out in the initial post clearly enough for many people to understand it. One reader in particular was so unnerved by the idea of an infinite chessboard that he declared the question meaningless. For his benefit, I provided an alternate version of the question in which the board is not infinite, but whose size is so large that a knight near its center cannot have its shortest path to a specified target square influenced by the edge of the board, and noted that it's easy to prove that there is such a size for any given target square.
Later a few armchair philosophers weighed in with comments addressing only the question in the title, and ignoring its intended meaning as explained in the initial post. I don't have any objection to those comments, but I am curious about whether is has occurred to those making them to attempt a positive contribution to the actual intent of the question as explained in the initial post. At this point I don't believe that's likely to happen, but maybe one of them will surprise me.
there has been an invitation given to offer an alternate formula (as it has been by the OP)
Disclaimer... I'm drunk right now
His seems efficient. The wave patterns I made are no thicker than 4, and he has two different statements that use division and a floor function meaning each statement could yield two different answers, and 2x2=4.
There are a few special cases he takes care of (when the destination is very close).
So it seems very efficient. There may be some tricks to make it even more efficient, but I'm not experienced with anything like that, so I wont even try.