# Parametrization of a regular planar polygon with an arbitrary number of sides

 P: 44 I was wondering if anyone knew of a common technique for parametrizing a regular polygon with an arbitrary number of sides. I figured such a problem would be easy or at least be well documented online, but that doesn't seem to be the case. I started by assuming that the polygon was centered at the origin of the Polar Plane and the sides were of length R. Then since the polygon has n vertices, we can draw n line segments, each starting at the center and protruding to a vertex. Now, we know that the sides are all equal, as well as the interior angles, and that the center is equidistant from each vertex, then the angles between the circumradii are multiples of 2pi/n. These contraints also require that the circumradii bisect the interior angles, and therefore they partition the polygon into n isosceles triangles. Then the magnitude of the interior angle situated at the ith vertex is then given by $$\left| {\angle {V_i}\left( {{P_n}} \right)} \right| = \pi - \frac{{2\pi }}{n}$$ we now use the law of sines to determine the length of the ith radius. $$\left| {{R_i}\left( {{P_n}} \right)} \right| = \frac{{\sin \left( {\frac{\pi }{2} - \frac{\pi }{n}} \right)R}}{{\sin \left( {\frac{{2\pi }}{n}} \right)}} = \frac{R}{{2\sin \left( {\frac{\pi }{n}} \right)}}$$ Next, I transformed these pairs into their Cartesian representation because parametrizing straight line segments in polar form seemed a little inefficient. Which is simple enough but then, in attempting to construct a unit vector, computation became cumbersome very quickly. I assumed that there was a more compact form since the magnitude must be independent of i, but after attempting to use the multiple angle formulae I gave up. So, I went back to polar form and realized that the the radius vector oscillates back and forth between the circumradius and inradius as the polar angle varies, but I can't seem to put that statement into a parametrization of the polygon. Anyone have any suggestions? I'm thinking this has to be something simple, and hopefully is somewhat elegant. My brain is just still in full reboot mode from midterms. :(
 P: 44 Yes, I know I could take the real and imaginary parts of that as the x and y vectors but I meant in terms of x and y or r and theta without introducing a parameter t. I guess it's easier for me to see what's going on this way For instance, for n= 4 $$\begin{array}{l} {{\vec P}_4}\left( {x,y} \right) = \left( {x\hat x - R\hat y} \right) - \left( { - R\hat x - R\hat y} \right) = \left( {x + R} \right)\hat x\\ x \in \left[ { - R,R} \right]\\ {{\vec P}_4}\left( {x,y} \right) = \left( {R\hat x + y\hat y} \right) - \left( {R\hat x - R\hat y} \right) = \left( {y + R} \right)\hat y\\ y \in \left[ { - R,R} \right]\\ {{\vec P}_4}\left( {x,y} \right) = \left( { - x\left( { - \hat x} \right) + R\hat y} \right) - \left( {R\hat x + R\hat y} \right) = \left( { - x + R} \right)\left( { - \hat x} \right)\\ x \in \left[ {R, - R} \right]\\ {{\vec P}_4}\left( {x,y} \right) = \left( {R( - \hat x) - y( - \hat y)} \right) - \left( {R( - \hat x) - R( - \hat y)} \right) = \left( { - y - R} \right)( - \hat y)\\ y \in \left[ {R, - R} \right] \end{array}$$ I'm a weirdo but Idk like I said it's just easier for me to see whats going on this way. I was looking for kind of an analogous parametrization for an arbitrary value of n.