summaryrefslogtreecommitdiff
path: root/inc/IntSurf_QuadricTool.lxx
blob: e1b157aa155ac5757c5828683b2c126203ef6630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <IntSurf_Quadric.hxx>
#include <gp_Vec.hxx>

inline Standard_Real IntSurf_QuadricTool::Value (const IntSurf_Quadric& Quad,
						 const Standard_Real X,
						 const Standard_Real Y,
						 const Standard_Real Z) {

  return Quad.Distance(gp_Pnt(X,Y,Z));
}

inline void IntSurf_QuadricTool::Gradient (const IntSurf_Quadric& Quad,
					   const Standard_Real X,
					   const Standard_Real Y,
					   const Standard_Real Z,
					   gp_Vec& V) {

  V = Quad.Gradient(gp_Pnt(X,Y,Z));
}

inline void IntSurf_QuadricTool::ValueAndGradient (const IntSurf_Quadric& Quad,
						   const Standard_Real X,
						   const Standard_Real Y,
						   const Standard_Real Z,
						   Standard_Real& Val,
						   gp_Vec& V) {

  Quad.ValAndGrad(gp_Pnt(X,Y,Z),Val,V);
}