----- file created by makedoc on: Fri May 31 15:22:19 2013
----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/conicset.pro -----


       NAME:
               CONICSET
       PURPOSE:
               This function Calculates the 10 conic
               coefficients from the focusing conditions
       CATEGORY:
               SHADOW tools
       CALLING SEQUENCE:
               c = conicset(p,q,theta)

 	INPUTS:
		p: distance source-surface [cm]
		q: distance surface-image [cm]
		theta: grazing andgle in rad (for angle with respect to
                      the normal, set the ANGLENORDEG keyword)
	
 	KEYWORD PARAMETERS
	        ANGLENORDEG: Set this keyword to indicate that the 
		  angle is in Degrees with respect to the surface normal
		TYPE: 
        	'0'
        	'Spherical-1'
        	'Ellipsoidal-2'
        	'Toroidal-3'
        	'Paraboloid-4'
        	'Plane-5'
        	'6'
        	'Hyperboloid-7'
        	'Cone-8??'
        	'Polynomial-9??
		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: 
		 Translated 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, 2006
	
	MODIFICATION HISTORY:
		2007-11-08 added doc. 


