Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/Extrema_FuncExtCC.lxx is written in an unsupported language. File is not indexed.

0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 //=============================================================================
0015 inline void Extrema_FuncExtCC::SetTolerance (const Standard_Real theTol)
0016 {
0017   myTol = theTol;
0018 }
0019 
0020 //=============================================================================
0021 
0022 inline Standard_Integer Extrema_FuncExtCC::NbVariables () const { return 2; }
0023 
0024 //=============================================================================
0025 
0026 inline Standard_Integer Extrema_FuncExtCC::NbEquations () const { return 2; }
0027 
0028 //=============================================================================
0029 
0030 inline Standard_Integer Extrema_FuncExtCC::NbExt () const { return mySqDist.Length(); }
0031 
0032 //=============================================================================
0033 
0034 inline Standard_Real Extrema_FuncExtCC::SquareDistance (const Standard_Integer N) const
0035 {
0036   return mySqDist.Value(N);
0037 }
0038 
0039 //=============================================================================
0040 
0041 inline Standard_Address Extrema_FuncExtCC::CurvePtr (const Standard_Integer theRank) const
0042 {
0043   Standard_OutOfRange_Raise_if (theRank < 1 || theRank > 2, "Extrema_FuncExtCC::SetCurve()")
0044   return (theRank == 1 ? myC1 : myC2);
0045 }
0046 
0047 //=============================================================================
0048 
0049 inline Standard_Real Extrema_FuncExtCC::Tolerance() const
0050 {
0051   return myTol;
0052 }