Google Maps JavaScript API v3: how to get the center lat & lon of a polygon phptuts May 3, 2013 How to get the center lat & lon of a polygon? We can do it just by calling polygon.getBounds().getCenter() Note: in Google Maps JavaScript API… Continue Reading
PHP: How to check if a Polygon is self-intersect? phptuts April 18, 2013 How to check if a Polygon is self-intersect? Example 1: Result: bool(false) Example 2: Result: bool(true) Continue Reading
PHP: How to determine the center of a Polygon phptuts December 12, 2012 How to determine the center of a Polygon. Read first: PHP: How to calculate signed area of a Polygon Method 1: Result: array(2) { [0]=>… Continue Reading
PHP: How to check if polygon is concave or convex? phptuts December 12, 2012 How to check if polygon is concave or convex? Note: It is assumed that the polygon is simple (does not intersect itself or have holes)… Continue Reading
PHP: How to check if the vertices of polygon are in clockwise or counter-clockwise order? phptuts December 12, 2012 How to check if the vertices of polygon are in clockwise or counter-clockwise order? There are many of method to check this. We offer some… Continue Reading
PHP: How to calculate signed area of a Polygon phptuts December 12, 2012 Calculating the signed area for an polygon can be found when you know the coordinates of the vertices. We offer 3 methods below: Method 1:… Continue Reading
PHP: detect Point in Polygon phptuts September 30, 2012 PHP function to detect Point in Polygon: Test for convex polygon: Result: IN OUT Test for concave polygon: Result: OUT IN OUT Note: we only… Continue Reading