Perl Monk, Perl Meditation | |
PerlMonks |
Re: Sorting geometric coordinates based on priorityby johngg (Canon) |
on Feb 02, 2017 at 23:15 UTC ( [id://1180896]=note: print w/replies, xml ) | Need Help?? |
A solution using a Guttman Rosler Transform which might be more efficient if there are a large number of rectangles.
The output.
I hope this is of interest. Update: Simplified decoration/de-decoration removing need for join and split.
Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|