http://qs321.pair.com?node_id=1231466


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