Hi friends
If each side of the rectangle is a line segment ,and the user drawn portion is a line segment, then how to check whether any line overlap or cross with another one.Please help me to find a solution.
Thanks
Sujina
Line crossing in rectangle
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 22, 2013, 9:22 PM EST
You can check these article.
http://www.andybeaulieu.com/Home/tabid/67/EntryID/160/Default.aspx
And this post
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 22, 2013, 10:46 PM EST
hi,
Hope you have all four line equation,
if you have than you can use line intersection formula and find out whether the line is intersecting ?
Please refer for formula
http://www.geometryatlas.com/entries/41
in this formula if m-n is zero than line is not intersecting..
hope this will help you.