If you know the radius RR of the circle that inscribes a regular polygon having nnsides, the side of the regular polygon can be easily found with trigonometry.
The polygon is composed by nn identical triangles having a common vertex in the center of this circle, therefore this angle is 2π/n.