mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 21:59:07 +02:00
TAChart: Mark TCubicSplineSeries.Calculate function public
git-svn-id: trunk@32282 -
This commit is contained in:
parent
ddb174b1da
commit
c501d0bda5
@ -160,7 +160,6 @@ type
|
|||||||
FUnorderedX: Boolean;
|
FUnorderedX: Boolean;
|
||||||
FX, FY, FCoeff: array of ArbFloat;
|
FX, FY, FCoeff: array of ArbFloat;
|
||||||
|
|
||||||
function Calculate(AX: Double): Double;
|
|
||||||
procedure PrepareCoeffs;
|
procedure PrepareCoeffs;
|
||||||
function PrepareIntervals: TIntervalList;
|
function PrepareIntervals: TIntervalList;
|
||||||
procedure SetBadDataPen(AValue: TBadDataChartPen);
|
procedure SetBadDataPen(AValue: TBadDataChartPen);
|
||||||
@ -171,6 +170,7 @@ type
|
|||||||
|
|
||||||
public
|
public
|
||||||
procedure Assign(ASource: TPersistent); override;
|
procedure Assign(ASource: TPersistent); override;
|
||||||
|
function Calculate(AX: Double): Double;
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
|
||||||
@ -747,6 +747,8 @@ var
|
|||||||
ok: Integer = 0;
|
ok: Integer = 0;
|
||||||
begin
|
begin
|
||||||
Result := ipfspn(High(FCoeff), FX[0], FY[0], FCoeff[0], AX, ok);
|
Result := ipfspn(High(FCoeff), FX[0], FY[0], FCoeff[0], AX, ok);
|
||||||
|
if ok > 1 then
|
||||||
|
Result := NaN;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TCubicSplineSeries.Create(AOwner: TComponent);
|
constructor TCubicSplineSeries.Create(AOwner: TComponent);
|
||||||
|
Loading…
Reference in New Issue
Block a user