How big would a triangle have to be to fit inside a square?This small utility shows the relative dimensions of the first five regular polygons.While programming I needed a function to display a triangle which would fit within a given area and rotate without going outside the boundaries.I had very simple questions how big should the triangle be and where is it39;s centre.Little did I know that the location of the centre of a triangle would be so complex.After spending many hours working through the various maths formulas to get what I needed, I decided to create this little utility to save me ever having to ever go through that nightmare again.While I was at it, I also included the same information for Squares, Pentagons, Hexagons, Heptagons, and Octagons.I don39;t expect it to change the world and would be happy if it helped just one person.