Distance from 3d point to an ellipse

2 ビュー (過去 30 日間)
browser
browser 2015 年 1 月 20 日
コメント済み: browser 2015 年 1 月 21 日
I want to calculate the distance from a 3d point (x,y,z) to an ellipse (described by xc,yc,zc,a,b,theta,phi,psi). (xc,yc,zc) is the center of the ellipse and the others are the standard variables from the equation of an ellipse.
The 3d point may not be on the same plane as the ellipse.
A lot of previous work on this problem has been in 2 dimensions.
Summary: Question: How do I find distance from 3d point to an ellipse given (x,y,z,xc,yc,zc,a,b,theta,phi,psi)?

回答 (1 件)

Alessandro Masullo
Alessandro Masullo 2015 年 1 月 20 日
A simple and straightforward solution could be discretizing the points of the ellipse, evaluating the distance from all the points, and then looking for the minimum.
  2 件のコメント
Mohammad Abouali
Mohammad Abouali 2015 年 1 月 20 日
編集済み: Mohammad Abouali 2015 年 1 月 20 日
Discretization may work fine, but (1) requires more memory, (2) you are as accurate as your discretization, and (3) you end up generally do more calculation.
An extra note on discretization, the finer you make the discretization (in order to have better accuracy) you need more memory and more computation. Since this is 3D problem the increase in amount of memory and computation is scaled by power 3; meaning if you make your resolution half (divide by 2) then you need 8 times (2^3) more work and memory.
browser
browser 2015 年 1 月 21 日
Thanks - I had considered this but as has been mentioned the amount of computation becomes very large. I have this method implemented currently.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNetworks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by