Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Creating a circle in a data structure

by lyklev (Pilgrim)
on May 29, 2007 at 16:08 UTC ( [id://617990]=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://617990]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2024-05-28 06:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found