in reply to Re: circular area in a coordinates grid (AoA)
in thread circular area in a coordinates grid (AoA)
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: circular area in a coordinates grid (AoA)
by LanX (Saint) on Mar 20, 2019 at 00:20 UTC | |
Re^3: circular area in a coordinates grid (AoA)
by tybalt89 (Monsignor) on Mar 19, 2019 at 23:53 UTC | |
by bliako (Monsignor) on Mar 20, 2019 at 01:14 UTC |
In Section
Seekers of Perl Wisdom