Check if a point is inside an object (alternate method)