![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Comparing 2-D co-ordinatesby dragonchild (Archbishop) |
on Jul 31, 2003 at 15:33 UTC ( [id://279617]=note: print w/replies, xml ) | Need Help?? |
You're not working with 2-D coordinates ... you're working with 1-D coordinates. You're working on a line, not a plane. So, if you want to deal with finding the longest, calculate the length found.
Now, for the overlap ... it sounds like you need to do something like the following:
------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|