1 // Created on: 1993-06-03
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 inline void Contap_ArcFunction::Set(const gp_Dir& Direction,
18 const Standard_Real Angle)
20 myType = Contap_DraftStd;
22 myCosAng = Cos(M_PI/2.+Angle);
25 inline void Contap_ArcFunction::Set(const gp_Pnt& Eye,
26 const Standard_Real Angle)
28 myType = Contap_DraftPrs;
30 myCosAng = Cos(M_PI/2.+Angle);
33 inline void Contap_ArcFunction::Set(const gp_Dir& Direction)
35 myType = Contap_ContourStd;
39 inline void Contap_ArcFunction::Set(const gp_Pnt& Eye)
41 myType = Contap_ContourPrs;
45 inline void Contap_ArcFunction::Set(const Handle(Adaptor2d_Curve2d)& A)
51 inline const gp_Pnt& Contap_ArcFunction::Valpoint
52 (const Standard_Integer Index) const
57 inline const Handle(Adaptor3d_Surface)& Contap_ArcFunction::Surface() const
62 inline const gp_Pnt& Contap_ArcFunction::LastComputedPoint() const