Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by LanX (Cardinal)
on Mar 20, 2019 at 00:20 UTC ( #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
Node Status?
node history
Node Type: note [id://1231466]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2020-11-28 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?