Regular Polygon Maker


posted by davidw
Sat, Jan 30 2010

Downloads: 40
File size: 3kB
Views: 193
Regular Polygon Maker

I was experimenting a bit with some trigonometric concepts and came up with a program that makes regular polygons, which are equiangular (all angles equal in measure) and equilateral (all sides have same length). My version, called RegPolygonMaker, is one of two programs in the downloadable zip file. Just plug in the number of sides you want (change the number in the integer variable named  "sides") and see what happens.

LFS, one of Phrogram's best programmers, took a look at my program and came up with a much cleaner (and better commented!) version of a polygon maker, which he posted to the site. I'm not surprised that making a polygon could be easier - and am very grateful for his refinement and better explanation. So I have included his program, BuildingPolygons, in this zip file.