Top "Polygon" questions

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

Check if Point Is Inside A Polygon

I want to check if a point lies within a specific polygon. The polygon is: polygon= [ [-73.89632720118, 40.8515320489962], [-73.8964878416508, 40.8512476593594], [-73.8968799791431, 40.851375925454], [-73.8967188588015, 40.851660158514], […

javascript polygon
Calculate area of polygon given (x,y) coordinates

I have a set of points and would like to know if there is a function (for the sake of …

python coordinates polygon area
Google Maps v3: check if point exists in polygon

I am looking to find a way of checking if a point exists inside a polygon in Google Maps v3 (…

google-maps google-maps-api-3 polygon
How to create a shapely Polygon from a list of shapely Points?

I want to create a polygon from shapely points. from shapely import geometry p1 = geometry.Point(0,0) p2 = geometry.Point(1,0) p3 = …

python polygon shapely
What is the fastest way to find the "visual" center of an irregularly shaped polygon?

I need to find a point that is a visual center of an irregularly shaped polygon. By visual center, I …

polygon point
Checking if a point is inside a polygon

I have a class describing a Point (has 2 coordinates x and y) and a class describing a Polygon which has …

python geometry polygon point
How to determine if a point is inside a 2D convex polygon?

I have a convex polygon (typically just a rotated square), and I know all of 4 points. How do I determine …

java geometry polygon
Calculating area of a polygon drawn on google map

I am looking for an accurate algorithm or a service to calculate surface area on earth where points are calculated …

google-maps map google-maps-api-3 gps polygon
How to test if a point is inside of a convex polygon in 2D integer coordinates?

The polygon is given as a list of Vector2I objects (2 dimensional, integer coordinates). How can i test if a …

geometry polygon hittest
ploting filled polygons in python

I have two matrices Tri and V for faces (Nx3) and vertices (Mx3) of polygons that I want to plot. …

python matplotlib plot polygon