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
|
---|
In Section
Seekers of Perl Wisdom