Integration of OCCT 6.5.0 from SVN
[occt.git] / src / GeomLib / GeomLib_PolyFunc.cdl
1 -- File:        GeomLib_PolyFunc.cdl
2 -- Created:     Tue Sep 22 16:24:52 1998
3 -- Author:      Philippe MANGINGeomLib_PolyFunc.c
4 --              <pmn@sgi29>
5 ---Copyright:    Matra Datavision 1998
6
7
8 private  class PolyFunc from GeomLib inherits  FunctionWithDerivative from math
9
10         ---Purpose: Polynomial  Function        
11
12 uses 
13   Vector  from  math
14
15 is 
16  
17     Create(Coeffs:Vector) returns  PolyFunc from GeomLib;  
18     
19     Value(me: in out; X: Real; F: out Real)
20         ---Purpose: computes the value <F>of the function for the variable <X>.
21         --          Returns True if the calculation were successfully done, 
22         --          False otherwise.
23
24     returns Boolean
25     is redefined;
26  
27     Derivative(me: in out; X: Real; D: out Real)
28          ---Purpose: computes the derivative <D> of the function 
29          --          for the variable <X>.
30         --           Returns True if the calculation were successfully done, 
31         --           False otherwise.
32
33     returns Boolean
34     is redefined;    
35
36     Values(me: in out; X: Real; F, D: out Real)
37         ---Purpose: computes the value <F> and the derivative <D> of the 
38         --          function for the variable <X>.
39         --          Returns True if the calculation were successfully done,
40         --          False otherwise.
41
42     returns Boolean
43     is redefined; 
44     
45 fields 
46   myCoeffs  :  Vector;
47
48 end PolyFunc;