# Polygon vertex calculator

This calculator takes the parameters of a regular polygon and calculates its coordinates. It produces both the coordinates of the vertices and the coordinates of the line segments making up the sides of the polygon.

It is useful to blind users and those who produce material for the sight-impaired. The programs that emboss shapes on pages for the blind need the coordinates of the lines that make up the shape. This page was designed to make it easy to produce the data needed by those programs (such as SVG Draw) to 'draw' regular polygons.

## Instructions

1. Instructions
2. Inputs
3. List of sides
4. List of vertices

The inputs are as follows:

• Center X and center Y are the coordinates of the center point of the polygon. Set initially to 550, 550. Note that the y coordinate is positive downwards, to conform to the convention in most computer software. Positive x is to the right.
• The number of sides. Must be greater than 2. Set initially to 5.
• The radius is the distance from the center to a vertex. Set initially to 100.
• Start angle is the position of the first vertex.

This angle is in degrees and is the angle starting at 3 o'clock going counter clockwise. So for example if you want the first vertex to be at 12 o'clock, set this to 90. Set initially to blank (auto).

If you leave this blank it will be set automatically: If the number of sides is odd, (e.g. a pentagon), the first vertex will be at 12 o'clock. If even, e.g. an octagon, the top and bottom sides will be horizontal on the page.

Click the 'Calculate' button to refresh the results. Note that the y coordinates are positive downwards, to conform to the convention in most computer software. Positive x is to the right.

The sides output is a table containing the start and end x,y coordinates of each side of the polygon, going counter clockwise from the first one. Below that is the same data in CSV format.

The vertex output is a table containing the x and y coordinates of each vertex of the polygon, going counter clockwise from the first one. Below that is the same data in CSV format.

## Inputs

 Center x Center y Number of sides Radius Start angle (degrees)