> I would simply make the distance limits a user-alterable value instead > of something written directly in the code.
There aren't any hard-coded distance limits. The limits are using 64-bit
floating-point maths. Using arbitrary precision floating-point means a
lot of code changes and making things slower by an order of magnitude.