in reply to how to calculate polygon vertex coordinates
with r the radius and offset the orientation. This polygon will fit inside a circle of radius r, or a 2r by 2r square.(r,w_i) = (r, offset+2*pi*i/n), where i = 0, 1, ..., n-1
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 |