Pascal-question: Line between 2 points
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.
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement