in reply to Creating a circle in a data structure

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).

  • Comment on Re: Creating a circle in a data structure