Determing if a point is inside an ellipsoid
4 ビュー (過去 30 日間)
古いコメントを表示
How can you determine if a given set of points is inside an off center rotated ellipsoid?
0 件のコメント
採用された回答
David Sanchez
2013 年 11 月 25 日
the point (x,y,z) will be inside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c < 1
it will be outside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c > 1
7 件のコメント
Ilja Westra
2022 年 10 月 7 日
If anybody else stumbles upon this and has trouble with the equation not working:
((x-xo)/a)^2 + ((y-yo)/b)^2 +((z-zo)/c)^2 < 1
Taking the whole fractions squared instead of just the distance from the point to the ellipsoid center worked for me.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!