Click here to Skip to main content
15,886,742 members
Everything / Polygon

Polygon

polygon

Great Reads

by veen_rp
An add-on tip to articles already posted on Code Project
by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in Perl
by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in C++

Latest Articles

by veen_rp
An add-on tip to articles already posted on Code Project
by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in C++
by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in Perl

All Articles

Sort by Score

Polygon 

29 Jun 2015 by CPallini
Assuming you are able collecting input from the user, then drawing the polygon is trivial:call moveto(x0,y0); lineto(x1,y1);...;lineto(x0,y0);Computing the perimeter is relatively easy, since, for instancel01 = sqrt((x1-x0)*(x1-x0)+(y1-y0)*(y1-y0));gives the length of the side connecting...
30 Jun 2015 by Stefan_Lang
There's a simple algorithm for calculating the area of a polygon:1. Choose one point P1. Interpret this point as 3D point by setting the z-coordinate to 0.2. For all remaining (n-1) points Pi:- interpret Pi and Pi+1 as 3D points by setting the z-coordinate to 0.- calculate the vector...
6 Feb 2016 by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in Perl
23 May 2019 by Richard MacCutchan
You should do all your painting/drawing to the screen in the function that handles the WM_PAINT message. Each time this function is called it should redraw all the shapes. When a shape is deleted you just remove it from the list of items to draw, and then call InvalidateRect to force a repaint...
21 Nov 2014 by Sunasara Imdadhusen
I am able to run following features on OpenLayers Map Version 2.xPut Markers on MapDraw Polygon on MapSelect Polygon on MapNow my requirement is when i select any polygon then i would like to show alert box with all marker which are inside the selected polygon.I am using...
23 Nov 2014 by Sunasara Imdadhusen
I have get Answer from Gabor Farkas from below link:How to get list of all markers from selected Polygon using OpenLayer MAP v2[^]This would be for your reference if you are looking for the same.Thanks,Imdadhusen
29 Jun 2015 by KarstenK
The areas can get computed via triangulation: you seperate the polygon in triangles and add their areas. The perimeter is more complex. You need to find all outsides and add them.For that you may look for some algorhitm. I would write a test function to proof that a points is NOT in a...
15 Oct 2016 by BurkusCat
Hi there,I am using the Google Location Services API on Android to periodically save a latitude/longitude they were at. I am trying to create a polygon around these points to create a route of where they have been. I want the route to take into the location accuracy for each of the points, so...
22 Feb 2017 by Nelek
You should use the message board at the bottom of the article. If you write there the authors will receive a notification. If they are still active, then they will probably answer you there.Here... quite difficult.
18 Sep 2017 by Member 13380410
Hello guys, i am sitting on a game which i am programming at the time and i am facing the following problem: The game has a predefined exisiting polygon on a GMaps.net API using GoogleMaps as GMapsProvider. Now i need a random valid address which is existing inside the polygon on the map....
18 Sep 2017 by W Balboos, GHB
Address are arbitrary definitions on the landscape. You can, however pick out an arbitrary locations. Do this by using the rand function to generate GPS coordinates with the following two general possibilities. 1) Polygon is rectangular aligned, in phase, with the coordinate system: simply...
23 May 2019 by Member 14430889
Dear All: i am new, i just start to learn draw shape with vs2012 c++ and Gdiplus about 5 weeks, i create a simple project to test, but when i draw polygon finish, i cannot delete any polygon which i selected from canvas, it not so easy like to delete a rectangle or a ellipse, only delete the...
2 Mar 2016 by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in C++
29 Jun 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
16 Jun 2023 by Maisum Abbas
I am trying to create a polygon using Google APIs. Now, I know how to create a Polygon using Google Maps. The issue is with the points. What I have tried: Earlier I was using a third-party service: Smappen to get points for the isochrone...
29 Jun 2015 by Member 11801907
like i want to draw a polygon in c++ using graphics.h . then ask for coordinates and sides. x1, x2 ,y1 ,y2. then draw the polygon and show its area and perimeter as output. using their mathamatical formulas. I have done this. #include #include #include ...
30 Jun 2015 by Member 11801907
#include #include #include #include void show_screen( ); void Polygon(const int,const int []); void Line(const int,const int,const int,const int); int main( ) { int driver=VGA; int mode=VGAHI; ...