PHP Location Polygon::contains - 1 пример найден. Это лучшие примеры PHP кода для Location\Polygon::contains, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.
Determine if given point is contained inside the polygon. Uses the PNPOLY
algorithm by W. Randolph Franklin. Therfore some edge cases may not give the
expected results, e. g. if the point resides on the polygon boundary.
См. также:
http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html For special cases this calculation leads to wrong results:
- if the polygons spans over the longitude boundaries at 180/-180 degrees