good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Creating a circle in a data structureby lyklev (Pilgrim) |
on May 29, 2007 at 16:08 UTC ( [id://617990]=note: print w/replies, xml ) | Need Help?? |
The first problem I see here is with the $radius ** 2; you probably meant 2 * pi * $radius, which scales linearly with the radius. You will miss more points, but there is no guarantee that you can fix it using a square (that is for the area of the circle).
In Section
Seekers of Perl Wisdom
|
|