simplify rectangle separation test to improve performance

ad hoc measuring indicates this speeds up the test by about 28%.