Point-in-polygon test