Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: circular area in a coordinates grid (AoA)

by LanX (Saint)
on Mar 20, 2019 at 00:20 UTC ( [id://1231466]=note: print w/replies, xml ) Need Help??


in reply to Re^2: circular area in a coordinates grid (AoA)
in thread circular area in a coordinates grid (AoA)

you can also get rid of both squares

x² = r²-y²

now increment y2=y+1

x2² = r²-(y+1)²

x2² = r²-y² - 2y - 1

x2² = x² - 2y -1

I'm too tired to get rid of the sqrt too now :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found