replaced the self-written containsPoint method with usage of do_intersect