mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 21:59:14 +02:00
TAChart: Allow multiplication of double point by scalar
git-svn-id: trunk@41849 -
This commit is contained in:
parent
729679cdfd
commit
da34f73db2
@ -97,6 +97,7 @@ operator div(const A: TPoint; ADivisor: Integer): TPoint; inline;
|
|||||||
operator *(const A: TPoint; AMultiplier: Integer): TPoint; inline;
|
operator *(const A: TPoint; AMultiplier: Integer): TPoint; inline;
|
||||||
operator *(const A, B: TPoint): TPoint; inline;
|
operator *(const A, B: TPoint): TPoint; inline;
|
||||||
operator *(const A, B: TDoublePoint): TDoublePoint; overload; 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): TDoublePoint; overload; inline;
|
||||||
operator = (const A, B: TDoublePoint): Boolean; overload; inline;
|
operator = (const A, B: TDoublePoint): Boolean; overload; inline;
|
||||||
operator = (const A, B: TDoubleRect): Boolean; overload; inline;
|
operator = (const A, B: TDoubleRect): Boolean; overload; inline;
|
||||||
@ -719,6 +720,12 @@ begin
|
|||||||
Result.Y := A.Y * B.Y;
|
Result.Y := A.Y * B.Y;
|
||||||
end;
|
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;
|
operator / (const A, B: TDoublePoint): TDoublePoint;
|
||||||
begin
|
begin
|
||||||
Result.X := A.X / B.X;
|
Result.X := A.X / B.X;
|
||||||
|
Loading…
Reference in New Issue
Block a user