메소드 |
설명 |
|
addPoint ( Coordinate $point ) |
|
|
contains ( Coordinate $point ) : boolean |
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. |
|
containsGeometry ( location\GeometryInterface $geometry ) : boolean |
Determine if given geometry is contained inside the polygon. This is
assumed to be true, if each point of the geometry is inside the polygon. |
|
format ( Location\Formatter\Polygon\FormatterInterface $formatter ) : mixed |
|
|
getArea ( ) : float |
Calculates the polygon area. |
|
getLats ( ) : float[] |
Return all polygon point's latitudes. |
|
getLngs ( ) : float[] |
Return all polygon point's longitudes. |
|
getNumberOfPoints ( ) : integer |
|
|
getPerimeter ( Location\Distance\DistanceInterface $calculator ) : float |
Calculates the polygon perimeter. |
|
getPoints ( ) : array |
|
|
getReverse ( ) : Polygon |
Create a new polygon with reversed order of points, i. e. reversed
polygon direction. |
|
getSegments ( ) : array |
|
|