1 //=============================================================================
3 inline void Extrema_FuncExtCC::SetCurve (const Standard_Integer theRank, const Curve1& C)
5 Standard_OutOfRange_Raise_if (theRank < 1 || theRank > 2, "Extrema_FuncExtCC::SetCurve()")
6 if (theRank == 1) {myC1 = (Standard_Address)&C;}
7 else {myC2 = (Standard_Address)&C;}
10 //=============================================================================
12 inline void Extrema_FuncExtCC::SetTolerance (const Standard_Real theTol)
17 //=============================================================================
19 inline Standard_Integer Extrema_FuncExtCC::NbVariables () const { return 2; }
21 //=============================================================================
23 inline Standard_Integer Extrema_FuncExtCC::NbEquations () const { return 2; }
25 //=============================================================================
27 inline Standard_Integer Extrema_FuncExtCC::NbExt () const { return mySqDist.Length(); }
29 //=============================================================================
31 inline Standard_Real Extrema_FuncExtCC::SquareDistance (const Standard_Integer N) const
33 return mySqDist.Value(N);
36 //=============================================================================
38 inline Standard_Address Extrema_FuncExtCC::CurvePtr (const Standard_Integer theRank) const
40 Standard_OutOfRange_Raise_if (theRank < 1 || theRank > 2, "Extrema_FuncExtCC::SetCurve()")
41 return (theRank == 1 ? myC1 : myC2);
44 //=============================================================================
46 inline Standard_Real Extrema_FuncExtCC::Tolerance() const