----- file created by makedoc on: Tue Apr  1 15:29:52 2008
----- 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 mrad
	
 	KEYWORD PARAMETERS
		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. 


