91
Calculating the Distance Between Points in Wrap Around (Toroidal) Space
Let’s say you are trying to find the distance between two points in 2D, but that these points are in a universe that “wraps around” like old video games – leaving the screen…