Sign in to follow this  
abachler

Point of closest approach

Recommended Posts

I would like to calculate the point on each of two lines in 3D space at which they are closest. So for example given A = { 0 , 0 , 0 , 1.0 , 1.0 , 1.0 } and B = { 0 , 0 , 0.5 , 1.0 , 1.0 , 0.5 } it would determine that the point of closest approach was at { 0.5 , 0.5 , 0.5 } and { 0.5 , 0.5 , 0.5 }. The lines may not necessarily cross one another.

Share this post


Link to post
Share on other sites
Quote:
Original post by abachler
I would like to calculate the point on each of two lines in 3D space at which they are closest. So for example given A = { 0 , 0 , 0 , 1.0 , 1.0 , 1.0 } and B = { 0 , 0 , 0.5 , 1.0 , 1.0 , 0.5 } it would determine that the point of closest approach was at { 0.5 , 0.5 , 0.5 } and { 0.5 , 0.5 , 0.5 }. The lines may not necessarily cross one another.
This problem can be solved pretty easily using minimization (or a geometrical approach).

Here is the first hit from Google for 'closest point two lines'; you should be able to find what you need there.

Share this post


Link to post
Share on other sites

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