# Line-Line Intersection 3D

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

## Recommended Posts

Hi, How can I determine the point of intersection of two lines in 3D space? I have been using http://www.gamedev.net/reference/articles/article423.asp for 2D space, and it works wonders. But I need to extend it into 3D Space. Thanks

##### Share on other sites
In 3D, you'll be more interested in whether two lines are "close enough" than whether they're intersecting; numerical imprecision will make your intersection calculations all wacky otherwise. And to determine how close they are, look here.

##### Share on other sites
Thanks,

Ok, say I calculated how close my lines are. I use a tolerance value to determine if the lines are touching or not.

I still need to know where (or at least, close to where) the 'intersection' is

##### Share on other sites
Quote:
 I still need to know where (or at least, close to where) the 'intersection' is
If you use the minimization algorithm (as described in Eberly's materials, or Graham's article in GPG), you should end up with parametric values corresponding to the closest pair of points on the lines. The average of these two points will give you an approximate point of intersection. (Let me know if that's not clear...)

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 9
• 9
• 9
• 14
• 12
• ### Forum Statistics

• Total Topics
633298
• Total Posts
3011256
• ### Who's Online (See full list)

There are no registered users currently online

×