Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate minimum distance between point and line in 3D space #157

Open
emanuelef opened this issue Jun 7, 2018 · 1 comment
Open

Calculate minimum distance between point and line in 3D space #157

emanuelef opened this issue Jun 7, 2018 · 1 comment

Comments

@emanuelef
Copy link

Hi,
I was wondering if it's possible to add a new method that given one position (lat, lon, alt) and two other positions returns the minimum distance between the point and the line segment generated by the two positions.
This is better explained here:
Point-Line Distance--3-Dimensional

In my case I'm looking to find the minimum distance from a point on the ground (but considering elevation) and a flying object passing by two points.

Thanks

@emanuelef
Copy link
Author

Hi, just wanted to ask if this is a feature that is on the roadmap or an idea for a possible implementation.
I have an implementation that is using Heron's formula but it's working on the 3d line projection of the two points. Ideally I would like to get the distance only within the segment defined by the two #D points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants