0022627: Change OCCT memory management defaults
[occt.git] / src / IntSurf / IntSurf_QuadricTool.lxx
1 #include <IntSurf_Quadric.hxx>
2 #include <gp_Vec.hxx>
3
4 inline Standard_Real IntSurf_QuadricTool::Value (const IntSurf_Quadric& Quad,
5                                                  const Standard_Real X,
6                                                  const Standard_Real Y,
7                                                  const Standard_Real Z) {
8
9   return Quad.Distance(gp_Pnt(X,Y,Z));
10 }
11
12 inline void IntSurf_QuadricTool::Gradient (const IntSurf_Quadric& Quad,
13                                            const Standard_Real X,
14                                            const Standard_Real Y,
15                                            const Standard_Real Z,
16                                            gp_Vec& V) {
17
18   V = Quad.Gradient(gp_Pnt(X,Y,Z));
19 }
20
21 inline void IntSurf_QuadricTool::ValueAndGradient (const IntSurf_Quadric& Quad,
22                                                    const Standard_Real X,
23                                                    const Standard_Real Y,
24                                                    const Standard_Real Z,
25                                                    Standard_Real& Val,
26                                                    gp_Vec& V) {
27
28   Quad.ValAndGrad(gp_Pnt(X,Y,Z),Val,V);
29 }
30
31