1 -- Created on: 1992-03-26
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1992-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
9 -- under the terms of the GNU Lesser General Public 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 private class PConicTool from IntCurve
19 ---Purpose: Implementation of the ParTool from IntImpParGen
20 -- for conics of gp, using the class PConic from IntCurve.
33 EpsX (myclass; C: PConic)
34 --Purpose: Tolerance used by mathematical algorithms
35 -- usually about 1e-10
36 returns Real from Standard;
39 NbSamples(myclass; C: PConic)
40 --Purpose: returns the number of samples on the parametric curve
41 returns Integer from Standard;
43 NbSamples(myclass; C: PConic; U0,U1: Real from Standard)
44 --Purpose: returns the number of samples on the parametric curve
45 returns Integer from Standard;
48 Value (myclass; C: PConic from IntCurve; X: Real from Standard)
49 --Purpose: Returns the geometric point which lies at the
50 -- parameter x on the parametric curve.
51 returns Pnt2d from gp;
54 D1 (myclass; C: PConic from IntCurve; U: Real from Standard ;
55 P: out Pnt2d; T: out Vec2d);
56 --Purpose: Computes the Value, First and Second Derivative at
57 -- the parameter U on the curve.
60 D2 (myclass; C: PConic from IntCurve; U: Real from Standard ;
61 P: out Pnt2d; T,N: out Vec2d);
63 --Purpose: Computes the Value, First and Second Derivative at
64 -- the parameter U on the curve.