in reply to how to calculate polygon vertex coordinates

The general formula for vertices of a regular polygon in polar coordintates is
(r,w_i) = (r, offset+2*pi*i/n), where i = 0, 1, ..., n-1
with r the radius and offset the orientation. This polygon will fit inside a circle of radius r, or a 2r by 2r square.

In rectangular coords, that is

x_i = r * cos(w_i) y_i = r * sin(w_i)

-Mark

Replies are listed 'Best First'.
Re: Re: how to calculate polygon vertex coordinates
by crowyn (Acolyte) on Feb 13, 2004 at 20:20 UTC
    Thanks so much. It is really helpful.