Added a few functions to generate regular polygons (to be used for collision detection).