Rectangle doesn't detect a point on the infinite line which includes its border as inside the rectangle