Refactor closest distance between halves to account for point coordinates