TAChart: Allow multiplication of double point by scalar

git-svn-id: trunk@41849 -
This commit is contained in:
ask 2013-06-23 18:44:02 +00:00
parent 729679cdfd
commit da34f73db2

View File

@ -97,6 +97,7 @@ operator div(const A: TPoint; ADivisor: Integer): TPoint; inline;
operator *(const A: TPoint; AMultiplier: Integer): TPoint; inline;
operator *(const A, B: TPoint): TPoint; inline;
operator *(const A, B: TDoublePoint): TDoublePoint; overload; inline;
operator * (const A: TDoublePoint; B: Double): TDoublePoint; overload; inline;
operator /(const A, B: TDoublePoint): TDoublePoint; overload; inline;
operator = (const A, B: TDoublePoint): Boolean; overload; inline;
operator = (const A, B: TDoubleRect): Boolean; overload; inline;
@ -719,6 +720,12 @@ begin
Result.Y := A.Y * B.Y;
end;
operator * (const A: TDoublePoint; B: Double): TDoublePoint;
begin
Result.X := A.X * B;
Result.Y := A.Y * B;
end;
operator / (const A, B: TDoublePoint): TDoublePoint;
begin
Result.X := A.X / B.X;