DownloadGreens-Theorem-in-PHP
This is an implementation of greens theorem to calculate the area of an irregular polygonal shape in pure php. The class can also be used to calculate the perimeter of an irregular polygon.
Possible Applications
-
It can be used to calculate the area of any place (a city, school and so on) provided their coordinates are known
-
It can be useful in situations where the distance around a place needs to be calculated
The class accepts an array of Points (x, y coordinates) as parameter. This points are then summed up into the vertices of an irregular polygon which can be used to calculate the area and distance along the polygonal shape
|