TAChart: Add DoublePoint utility function

git-svn-id: trunk@25887 -
This commit is contained in:
ask 2010-06-04 09:20:22 +00:00
parent 1133b58566
commit ccbc4bbb33

View File

@ -192,6 +192,7 @@ const
function BoundsSize(ALeft, ATop: Integer; ASize: TSize): TRect; inline;
function DoublePoint(AX, AY: Double): TDoublePoint; inline;
function DoubleRect(AX1, AY1, AX2, AY2: Double): TDoubleRect; inline;
procedure DrawLineDepth(ACanvas: TCanvas; AX1, AY1, AX2, AY2, ADepth: Integer);
@ -318,6 +319,12 @@ begin
end; {case AxisScale}
end;
function DoublePoint(AX, AY: Double): TDoublePoint; inline;
begin
Result.X := AX;
Result.Y := AY;
end;
function DoubleRect(AX1, AY1, AX2, AY2: Double): TDoubleRect; inline;
begin
Result.a.X := AX1;