-- Created on: 1992-03-26
-- Created by: Laurent BUCHARD
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and / or modify it
-- under the terms of the GNU Lesser General Public version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
private class PConicTool from IntCurve
---Purpose: Implementation of the ParTool from IntImpParGen
-- for conics of gp, using the class PConic from IntCurve.
---Level: Internal
uses Pnt2d from gp,
Vec2d from gp,
Lin2d from gp,
XY from gp,
PConic from IntCurve
is
EpsX (myclass; C: PConic)
--Purpose: Tolerance used by mathematical algorithms
-- usually about 1e-10
returns Real from Standard;
NbSamples(myclass; C: PConic)
--Purpose: returns the number of samples on the parametric curve
returns Integer from Standard;
NbSamples(myclass; C: PConic; U0,U1: Real from Standard)
--Purpose: returns the number of samples on the parametric curve
returns Integer from Standard;
Value (myclass; C: PConic from IntCurve; X: Real from Standard)
--Purpose: Returns the geometric point which lies at the
-- parameter x on the parametric curve.
returns Pnt2d from gp;
D1 (myclass; C: PConic from IntCurve; U: Real from Standard ;
P: out Pnt2d; T: out Vec2d);
--Purpose: Computes the Value, First and Second Derivative at
-- the parameter U on the curve.
D2 (myclass; C: PConic from IntCurve; U: Real from Standard ;
P: out Pnt2d; T,N: out Vec2d);
--Purpose: Computes the Value, First and Second Derivative at
-- the parameter U on the curve.
end PConicTool;