emulate rectComparePoint