• Advertisement
Sign in to follow this  

Pascal-question: Line between 2 points

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

http://i10.photobucket.com/albums/a104/dktekno/koord.jpg How do I figure out if a line between these 2 points A and B goes through an object? The object might be a TBevel.

Share this post


Link to post
Share on other sites
Advertisement
Let F be a function that determines whether two lines intersect.
Let O be an object composed out of n bounding lines L1...Ln.
Let L be your line between A and B.

Test F(L, Li) for all lines L1..Ln. If any of the lines intersect, then L goes through O.

Share this post


Link to post
Share on other sites
Quote:
Let F be a function that determines whether two lines intersect.
Let O be an object composed out of n bounding lines L1...Ln.
Let L be your line between A and B.

Test F(L, Li) for all lines L1..Ln. If any of the lines intersect, then L goes through O.


I need an example code.

I don't know how to calculate any line between the two points. I've been thinking of this for several days now, I need a complete fully written example.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement