summaryrefslogtreecommitdiff
path: root/inc/IntImp_ZerParFunc.lxx
blob: 0ffcd5fb7f42088c29af463a0033e7f591c55edc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <StdFail_UndefinedDerivative.hxx>

#ifndef gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef gp_Dir2d_HeaderFile
#include <gp_Dir2d.hxx>
#endif
#ifndef gp_Dir_HeaderFile
#include <gp_Dir.hxx>
#endif


inline Standard_Real IntImp_ZerParFunc::Root() const {

  return f[0]*f[0]+f[1]*f[1]+f[2]*f[2];
}


inline gp_Pnt IntImp_ZerParFunc::Point() const {
  return  gp_Pnt((pntsol1.XYZ()+ pntsol2.XYZ())/2.);
}

inline gp_Dir IntImp_ZerParFunc::Direction() const {
  if (tangent ) StdFail_UndefinedDerivative::Raise();
  return gp_Dir(tgduv[0]*dpuv[0].XYZ() + tgduv[1]*dpuv[1].XYZ());
}

inline gp_Dir2d IntImp_ZerParFunc::DirectionOnS1() const {
  if (tangent ) StdFail_UndefinedDerivative::Raise();       
  return gp_Dir2d(tgduv[0],tgduv[1]);
}

inline gp_Dir2d IntImp_ZerParFunc::DirectionOnS2() const {
  if (tangent ) StdFail_UndefinedDerivative::Raise();       
  return gp_Dir2d(tgduv[2],tgduv[3]);
}

inline const ThePSurface& IntImp_ZerParFunc::AuxillarSurface1() const { 
  return  (*((const ThePSurface * const)(surf1)));
}

inline const ThePSurface& IntImp_ZerParFunc::AuxillarSurface2() const {
  return  (*((const ThePSurface * const)(surf2)));
}