Hi Luke,

I'm no mathematician, but over the top of my head I'd say you should check
for the following conditions:

If either of the end points intersect the line using the inside() function
               or
If the point halfway between the two points intersects the rect

There's probably a simpler method to do it though.

Pranav Negandhi
New Media Applications.
Learnet India Limited, Mumbai.
Phone: 91-22-859 8042 Ext: 410



<snip>
I can't seem to solve this simple problem properly - I need to test whether
a line ([pointA, pointB]) intersects a rect or quad ([point1, point2,
point3, point4]). Can someone point me in the right direction?
<snip>





[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to