42cf5bc1 |
1 | // Created on: 1992-10-14 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1992-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter_HeaderFile |
18 | #define _HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Address.hxx> |
25 | #include <math_FunctionSetWithDerivatives.hxx> |
26 | #include <Standard_Integer.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | #include <math_Vector.hxx> |
29 | class HLRBRep_CurveTool; |
30 | class math_Matrix; |
31 | |
32 | |
33 | |
34 | class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter : public math_FunctionSetWithDerivatives |
35 | { |
36 | public: |
37 | |
38 | DEFINE_STANDARD_ALLOC |
39 | |
40 | |
41 | Standard_EXPORT HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter(const Standard_Address& curve1, const Standard_Address& curve2); |
42 | |
36b9ff75 |
43 | //! returns 2. |
42cf5bc1 |
44 | Standard_EXPORT Standard_Integer NbVariables() const; |
45 | |
36b9ff75 |
46 | //! returns 2. |
42cf5bc1 |
47 | Standard_EXPORT Standard_Integer NbEquations() const; |
48 | |
36b9ff75 |
49 | //! computes the values <F> of the Functions for the |
50 | //! variable <X>. |
51 | //! returns True if the computation was done successfully, |
52 | //! False otherwise. |
42cf5bc1 |
53 | Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F); |
54 | |
36b9ff75 |
55 | //! returns the values <D> of the derivatives for the |
56 | //! variable <X>. |
57 | //! returns True if the computation was done successfully, |
58 | //! False otherwise. |
42cf5bc1 |
59 | Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D); |
60 | |
36b9ff75 |
61 | //! returns the values <F> of the functions and the derivatives |
62 | //! <D> for the variable <X>. |
63 | //! returns True if the computation was done successfully, |
64 | //! False otherwise. |
42cf5bc1 |
65 | Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D); |
66 | |
67 | |
68 | |
69 | |
70 | protected: |
71 | |
72 | |
73 | |
74 | |
75 | |
76 | private: |
77 | |
78 | |
79 | |
80 | Standard_Address thecurve1; |
81 | Standard_Address thecurve2; |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter_HeaderFile |