Top "Polygon" questions

For issues relating to the creation, manipulation and rendering of polygons in graphical user interfaces.

How to draw free hand polygon in Google map V2 in Android?

I want to draw a Free Hand Polygon on the Map in Google Map V2. This task was possible with …

android google-maps overlay draw polygon
How to draw polygons with Python?

I have input values of x, y coordinates in the following format: [[1,1], [2,1], [2,2], [1,2], [0.5,1.5]] I want to draw polygons, but I don't …

python plot polygon
Google map: Add click listener to each polygon

I am working on a webapplication. I have a google map, where I add polygons from an array. I loop …

javascript google-maps asp.net-mvc-4 polygon
SciPy Create 2D Polygon Mask

I need to create a numpy 2D array which represents a binary mask of a polygon, using standard Python packages. …

python scipy polygon sage point-in-polygon
How to check if a point (x,y) is inside a polygon in the Cartesian coordinate system?

This question already has an answer here: Point in Polygon aka hit test C# Point in polygon Given a random …

c algorithm math polygon computational-geometry
Calculate coordinates of a regular polygon's vertices

I am writing a program in which I need to draw polygons of an arbitrary number of sides, each one …

c# algorithm math geometry polygon
Center of gravity of a polygon

I am trying to write a PHP function that will calculate the center of gravity of a polygon. I've looked …

algorithm geometry geolocation polygon gravity
How do I determine if two convex polygons intersect?

Suppose there are a number of convex polygons on a plane, perhaps a map. These polygons can bump up against …

geometry polygon convex
Check if geo-point is inside or outside of polygon

I am using python and I have defined the latitudes and longitudes (in degrees) of a polygon on the map. …

python polygon coordinate-systems shapely point-in-polygon
Calculate overlapped area between two rectangles

I want to calculate the overlapped area "THE GRAY REGION" between red and blue rectangles. Each rectangle is defined by …

python numpy matplotlib polygon shapely