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 reply to Re^3: circular area in a coordinates grid (AoA)
by LanX
in thread circular area in a coordinates grid (AoA)
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |