Determing if a point is inside an ellipsoid
조회 수: 10 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!