Use linear interpolation for distance integral
This should use fewer floating-point operations and should make the lookup table small enough that it fits in L3 cache.
This should use fewer floating-point operations and should make the lookup table small enough that it fits in L3 cache.