(a simpler way is to just expand the bounds to make sure all collisions must happen, so each bound is at least N away from the range of the inputs, where N can be simply deducted with max(width, length) unless you want to do the maths)