-- Created on: 1995-01-12 -- Created by: Laurent BOURESCHE -- Copyright (c) 1995-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class Linear from Law inherits Function from Law ---Purpose: Describes an linear evolution law. uses Array1OfReal from TColStd, Shape from GeomAbs raises OutOfRange from Standard is Create returns mutable Linear from Law; ---Purpose: Constructs an empty linear evolution law. Set(me: mutable; Pdeb,Valdeb,Pfin,Valfin: Real from Standard) ---Purpose: -- Defines this linear evolution law by assigning both: -- - the bounds Pdeb and Pfin of the parameter, and -- - the values Valdeb and Valfin of the function at these -- two parametric bounds. is static; Continuity(me) returns Shape from GeomAbs ---Purpose: Returns GeomAbs_CN is redefined static; NbIntervals(me; S : Shape from GeomAbs) returns Integer ---Purpose: Returns 1 is redefined static; Intervals(me; T : in out Array1OfReal from TColStd; S : Shape from GeomAbs) raises OutOfRange from Standard is redefined static; Value(me: mutable; X: Real from Standard) returns Real from Standard; ---Purpose: Returns the value of this function at the point of parameter X. D1(me: mutable; X: Real from Standard; F,D: out Real from Standard); ---Purpose: -- Returns the value F and the first derivative D of this -- function at the point of parameter X. D2(me: mutable; X: Real from Standard; F,D, D2: out Real from Standard); ---Purpose: Returns the value, first and second derivatives -- at parameter X. Trim(me; PFirst, PLast, Tol :Real from Standard) returns Function ---Purpose: Returns a law equivalent of between -- parameters and . is used to -- test for 3d points confusion. -- It is usfule to determines the derivatives -- in these values and if -- the Law is not Cn. is redefined static; Bounds(me: mutable; PFirst,PLast: out Real from Standard); ---Purpose: Returns the parametric bounds of the function. fields valdeb : Real from Standard; valfin : Real from Standard; pdeb : Real from Standard; pfin : Real from Standard; end Linear;