making the point in polygon calculation the four corners of the square