IntersectLineAndCone:

Path: Math/Geometry

% Compute the intersection of a line and a cone. 
 The line is defined by a point and unit vectors.
--------------------------------------------------------------------------
   Form:
   [y, i] = IntersectLineAndCone( p, u, alpha )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p              (3,:)  Points
   u              (3,:)  Unit vectors
   alpha          (1,1)  alpha

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

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

Children:

Math: Linear/DupVect

Back to the Math Module page