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.
Rody Oldenhuis (2021). Distance between points and ellipse (https://github.com/rodyo/FEX-distancePointEllipse/releases/tag/v1.4), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Distance from points to an ellipse
Inspired: Distance from points to an ellipse
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!