Sometimes the game approximates distance using the radius as half the length of a containing cube. Add functions for testing if a system is within the cubic distance given a radius (i.e., half a side) and for finding all systems within a cube.
The latter function could either use the former, like the current nearby function, or it could do a query on the df directly, i.e., "origin_D + r >= D >= origin_D - r" where D: [x, y, z].
Sometimes the game approximates distance using the radius as half the length of a containing cube. Add functions for testing if a system is within the cubic distance given a radius (i.e., half a side) and for finding all systems within a cube.
The latter function could either use the former, like the current nearby function, or it could do a query on the df directly, i.e., "origin_D + r >= D >= origin_D - r" where D: [x, y, z].