AABB based closest point query