1 -- File: FunctionTanCuCu.cdl
2 -- Created: Thu Feb 20 7:33:43 1992
5 ---Copyright: Matra Datavision 1992
8 generic class FunctionTanCuCu from GccIter (
10 TheCurveTool as any) -- as CurvePGTool from GccInt (TheCurve)
12 inherits FunctionSetWithDerivatives from math
14 ---Purpose: This abstract class describes a Function of 1 Variable
15 -- used to find a line tangent to two curves.
17 uses Vector from math,
25 raises ConstructionError
29 Create (Curv1 : TheCurve ;
30 Curv2 : TheCurve ) returns FunctionTanCuCu from GccIter;
32 Create (Circ1 : Circ2d from gp ;
33 Curv2 : TheCurve ) returns FunctionTanCuCu from GccIter;
35 InitDerivative(me : in out ;
36 X : Vector from math ;
37 Point1,Point2 : out Pnt2d from gp ;
38 Tan1,Tan2,D21,D22 : out Vec2d from gp )
39 raises ConstructionError
42 NbVariables(me) returns Integer;
43 ---Purpose: returns the number of variables of the function.
45 NbEquations(me) returns Integer;
46 ---Purpose: returns the number of equations of the function.
50 F : out Vector from math) returns Boolean;
51 ---Purpose: Computes the value of the function F for the variable X.
52 -- It returns True if the computation is successfully done,
55 Derivatives (me : in out ;
57 Deriv : out Matrix from math) returns Boolean;
58 ---Purpose: Computes the derivative of the function F for the variable X.
59 -- It returns True if the computation is successfully done,
64 F : out Vector from math;
65 Deriv : out Matrix from math) returns Boolean;
66 ---Purpose: Computes the value and the derivative of the function F
67 -- for the variable X.
68 -- It returns True if the computation is successfully done,
73 TheCurve1 : TheCurve ;
74 TheCurve2 : TheCurve ;
75 TheCirc1 : Circ2d from gp ;
76 TheType : Type3 from GccIter ;