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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Dec 23, 2013, 3:46 AM
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.
Jaganathan BantheswaranPosted Dec 23, 2013, 2:22 AM
You can check these article.
http://www.andybeaulieu.com/Home/tabid/67/EntryID/160/Default.aspx
And this post