Find Shortest Distance to Point on Ellipsoid

AI Thread Summary
The discussion focuses on finding a more efficient method to calculate the shortest distance from a point to the surface of an ellipsoid, as the current brute force approach is too slow for a large number of points. The user has the parametric equation for the ellipsoid and seeks a mathematical solution to streamline the process. The gradient at the point is provided, leading to a line equation that can be used to find the intersection with the ellipsoid. By solving the equations derived from the gradient, the user can determine the intersection point and subsequently calculate the distance. This method offers a cleaner and faster alternative to the brute force approach.
golmschenk
Messages
35
Reaction score
0
Right now I'm running this with a brute force program which takes points on an ellipsoid and checks the distance to the point, slightly readjusts, and keeps moving toward the minimum, but it takes far to long for the mass amount of points I want to run through the program. Is there an equation I can use to find the line?

The question more specifically is the following. I have the parameteric equation for an ellipsoid. I have the location of a point. I want to find the shortest distance from the surface of the ellipsoid to the point. The point could be on the inside or the outside of the ellipsoid. I currently have a brute force program solving this but would like an equation or something else cleaner/faster to solve this. Is there a better way I could be doing this? Thanks for your time.
 
Mathematics news on Phys.org


Suppose the equation of the ellipsoid is
\frac{x^2}{a^2}+ \frac{y^2}{b^2}+ \frac{z^2}{c^2}= 1

Then the gradient at the point (x_0,y_0, z_0) is
\frac{2}{a^2}x_0\vec{i}+ \frac{2}{b^2}y_0\vec{j}+ \frac{2}{c^2}y_0\vec{k}

The line through given point (u, v, w), parallel to that vector is
x= \frac{2}{a^2}x_0t+ u
y= \frac{2}{b^2}y_0t+ v
z= \frac{2}{c^2}z_0t+ w

Solve the three equations
x_0= \frac{2}{a^2}x_0t+ u
y_0= \frac{2}{b^2}y_0t+ v
z_0= \frac{2}{c^2}z_0t+ w
for x_0, y_0, and z_0 to find the point at which the shortest line (i.e. the perpendicular line) from the point intersects the ellipsoid, the find the distance between (u, v, w) and (x_0, y_0, z_0).
 


Fantastic! Thanks! I knew there had to be something like this, but wasn't finding it.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Back
Top