IntersectLineAndEllipsoid:

--------------------------------------------------------------------------
   Compute the intersection of a line and ellipsoid. Always returns
   the closest point. The line is defined by a point and unit vectors.
--------------------------------------------------------------------------
   Form:
   [y, i] = IntersectLineAndEllipsoid( p, u, e )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p              (3,:)  Points
   u              (3,:)  Unit vectors
   e              (3,1)  [a; b; c]

   -------
   Outputs
   -------
   y              (3,:) Intersection points
   i              (1,:) 1 = intersected

--------------------------------------------------------------------------

Children:

Math: Linear/DupVect
Math: Linear/Mag