Check if a point is located inside a 3D ellipsoid.

   output = isPointInEllipsoid(input)

   Example
     % create an ellipsoid
     elli = [10 20 30   50 30 10   5 10 0];
     display it
     figure; hold on;
     drawEllipsoid(elli, 'FaceColor', 'g', 'FaceAlpha', .5, ...
         'drawEllipses', true, 'EllipseColor', 'b', 'EllipseWidth', 3);
     view(3); axis equal;
     % check for a point inside the ellipsoid
     p1 = [20 30 35];
     b1 = isPointInEllipsoid(p1, elli)
     ans = 
         1
     % check for a point outside the ellipsoid
     p2 = [-20 10 25];
     b2 = isPointInEllipsoid(p2, elli)
     ans = 
         0
   

   See also
     equivalentEllipsoid, drawEllipsoid, isPointInEllipse

Package: matgeom