필터 지우기
필터 지우기

Points inside the sphere

조회 수: 1 (최근 30일)
Aliaksandra Sikirzhytskaya
Aliaksandra Sikirzhytskaya 2022년 11월 1일
편집: James Tursa 2022년 11월 1일
How to find if the points are inside or on the edge of the ellipsoid with the center at X Y Z and radiuses a b c?

채택된 답변

James Tursa
James Tursa 2022년 11월 1일
편집: James Tursa 2022년 11월 1일
Just plug your points into the ellipsoid equation and see if they work. E.g.,
((x - X)/a).^2 + ((y - Y)/b).^2 + ((z - Z)/c).^2 <= 1
Where x, y, z are the coordinates of your points.

추가 답변 (1개)

Torsten
Torsten 2022년 11월 1일
Hint:
Use the function
fun = @(x,y,z) ((x-X)/a).^2 + ((y-Y)/b).^2 + ((z-Z)/c).^2 - 1.0;

카테고리

Help CenterFile Exchange에서 Computational Geometry에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by