in reply to line segment intersection

I'm no expert on the subject myself, but I think you need to look up "matrix algebra" on Google.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated