1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and / or modify it
7 // under the terms of the GNU Lesser General Public version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <AppCont_FunctionTool2d.ixx>
17 #include <AppCont_Function2d.hxx>
18 #include <TColgp_Array1OfPnt2d.hxx>
19 #include <TColgp_Array1OfVec2d.hxx>
20 #include <gp_Pnt2d.hxx>
21 #include <gp_Vec2d.hxx>
24 Standard_Real AppCont_FunctionTool2d::FirstParameter
25 (const AppCont_Function2d& F)
27 return F.FirstParameter();
30 Standard_Real AppCont_FunctionTool2d::LastParameter
31 (const AppCont_Function2d& F)
33 return F.LastParameter();
36 Standard_Integer AppCont_FunctionTool2d::NbP2d
37 (const AppCont_Function2d&)
43 Standard_Integer AppCont_FunctionTool2d::NbP3d
44 (const AppCont_Function2d&)
49 void AppCont_FunctionTool2d::Value(const AppCont_Function2d& F,
50 const Standard_Real U,
51 TColgp_Array1OfPnt2d& tabPt)
53 tabPt(tabPt.Lower()) = F.Value(U);
59 Standard_Boolean AppCont_FunctionTool2d::D1
60 (const AppCont_Function2d& F,
61 const Standard_Real U,
62 TColgp_Array1OfVec2d& tabV)
66 Standard_Boolean Ok = F.D1(U, P, V);
67 tabV(tabV.Lower()) = V;
76 void AppCont_FunctionTool2d::Value(const AppCont_Function2d&,
83 void AppCont_FunctionTool2d::Value(const AppCont_Function2d&,
86 TColgp_Array1OfPnt2d&)
92 Standard_Boolean AppCont_FunctionTool2d::D1
93 (const AppCont_Function2d&,
97 return (Standard_False);
101 Standard_Boolean AppCont_FunctionTool2d::D1
102 (const AppCont_Function2d&,
105 TColgp_Array1OfVec2d&)
107 return (Standard_False);