----- file created by makedoc on: Thu Sep 11 15:03:11 2014
----- Documentation for /scisoft/xop2.4/extensions/shadowvui/src/lib/coniclens.pro -----


       NAME:
               CONICLENS
       PURPOSE:
               This function Calculates the 10 conic
               coefficients from the focusing conditions
               of a lens
       CATEGORY:
               SHADOW tools
       CALLING SEQUENCE:
               c = coniclens(p,q,delta=delta)

 	INPUTS:
		p: distance source-surface [cm]
		q: distance surface-image [cm]
	
 	KEYWORD PARAMETERS
		DELTA: The refraction index is n=1-delta
		TYPE: 
        	       '0'
        	       'Spherical-1'
        	       'Ellipsoidal-2'
        	       'Toroidal-3'
        	       'Paraboloid-4'
        	       'Plane-5'
        	       '6'
        	       'Hyperboloid-7'
        	       'Cone-8??'
        	       'Polynomial-9??
		n0: The object refraction index
		n1: The image refraction index
		CYLINDRICAL: set to 1 for cylindrical symmetry
		CYLANGLE: if cylindrical is set, the angle between
		  the cylinder axis and the X axis in deg.
		CONVEX: set to 1 for invering convexity
		TXT: set to a named variable to receive some 
		     info on the calculations.

	ALGORITHM: 
		 Adapted from SHADOW/MSETUP 
	
		 Equation of the conic: 

	         c[0]*X^2 + c[1]*Y^2 + c[2]*Z^2 +
                c[3]*X*Y + c[4]*Y*Z + c[5]*X*Z  +
                c[6]*X + c[7]*Y + c[8]*Z + c[9] = 0 


	AUTHOR: 
		M. Sanchez del Rio srio@esrf.eu, Sept. 29, 2009
	
	MODIFICATION HISTORY:
               2010-01-26 srio@esrf.eu corrected parabola


