image thumbnail

Distance between points and ellipse

version 1.4 (3.59 KB) by Rody Oldenhuis
Compute the distances between an ellipse and an arbitrary number of points, in 3D

1.2K Downloads

Updated 02 May 2020

From GitHub

View license on GitHub

The solution to the problem of calculating the distance between an ellipse and a point is less than straightforward. The problem can be solved analytically however, which boild down to solving a quartic equation in cos(f), with (f) the true anomaly on the ellipse.
This submission implements this and computes the distances between any 3-D ellipse and an arbitrary number of 3-D points.
This is part of:
Ik-Sung Kim: "An algorithm for finding the distance between two ellipses". Commun. Korean Math. Soc. 21 (2006), No.3, pp.559-567
See also my other submission, distanceEllipseEllipse.

Cite As

Rody Oldenhuis (2021). Distance between points and ellipse (https://github.com/rodyo/FEX-distancePointEllipse/releases/tag/v1.4), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.