Cool! But that eval poked my eye.
The following can potentially save on some sqrt's too:
my $delta_x = $radius ** 2 - ($center_r - $row) ** 2; if( $delta_x >= 0 ){ $delta_x = int sqrt $delta_x; ...
bw, bliako
In reply to Re^2: circular area in a coordinates grid (AoA)
by bliako
in thread circular area in a coordinates grid (AoA)
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |