MATLAB: Determing if a point is inside an ellipsoid

ellipsoid

How can you determine if a given set of points is inside an off center rotated ellipsoid?

Best Answer

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