Sign in to follow this  

Pascal-question: Line between 2 points

This topic is 3594 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
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

This topic is 3594 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this