docs: def get_closest_box(self, pos):
          """Get the box closest to some position."""
          pos = np.atleast_2d(pos)
          d = np.sum((np.array(self.box_pos) - pos) ** 2, axis=1)
          idx = np.argmin(d)
          return idx