Method |
Description |
|
__construct ( ) |
|
|
addPoint ( Point $point ) |
|
|
contains ( Point $point ) |
|
|
count ( ) |
Interface Countable |
|
current ( ) |
|
|
find_polygons_in_graph ( Graph $graph ) |
|
|
getArea ( ) |
Calculates the area of any given non-crossing polygon |
|
getCentroid ( ) |
Gets the coordinates of the centroid of the polygon |
|
getPerimeter ( ) |
|
|
includes ( Point $point ) |
Checks the presence of a point in the polygon
Returns :
0 : Point not in polygon
1 : Point in polygon
2 : Point is a node of the polygon |
|
key ( ) |
|
|
next ( ) |
|
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
Interface ArrayAccess |
|
offsetUnset ( $offset ) |
|
|
polygon_finder_recursive ( Graph $graph, $currentPolygon, $currentVertex, $lastVertex ) |
|
|
rewind ( ) |
|
|
valid ( ) |
|
|