Syntactic Confectionery Delight | |
PerlMonks |
Re^2: circular area in a coordinates grid (AoA) -- updatedby Discipulus (Canon) |
on Mar 19, 2019 at 22:44 UTC ( [id://1231462]=note: print w/replies, xml ) | Need Help?? |
Fantastic! I suppose i can optimize it using for my $row ( $center_r - $radius .. $center_r + $radius ) instead of processing the whole AoA I never seen >> before: seems a int( $_ / 2) operator.. thanks for this too! L* update I adapted to return a hash instead. I feel happy with it. Thanks again
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|