ParabolaToS:

Path: Imaging/Optics

% Convert parabola parameters to s.
   The parabola ais is parallel to x and of the form

   (y-y0)^2 + 4p(x-x0)

   Type ParabolaToS for a demo

--------------------------------------------------------------------------
   Form:
   s = ParabolaToS( p, x0, y0 )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p         (1,1) Distance of vertex from the focus
   x0        (1,1) x-axis origin
   y0        (1,1) y-axis origin

   -------
   Outputs
   -------
   s         (1,6) Coefficients of [x^2 y^2 xy x y 1]

Back to the Imaging Module page