mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 21:39:23 +02:00
TAChart: Fix typo in DotProduct (TAGeometry), some cleanup
git-svn-id: trunk@54013 -
This commit is contained in:
parent
3df8a5c390
commit
a84ac921d2
@ -83,8 +83,6 @@ function ProjToRect(
|
|||||||
const APt: TDoublePoint; const ARect: TDoubleRect): TDoublePoint;
|
const APt: TDoublePoint; const ARect: TDoubleRect): TDoublePoint;
|
||||||
function RectIntersectsRect(
|
function RectIntersectsRect(
|
||||||
var ARect: TDoubleRect; const AFixed: TDoubleRect): Boolean;
|
var ARect: TDoubleRect; const AFixed: TDoubleRect): Boolean;
|
||||||
function RectIntersectsRectAlt(R1, R2: TDoubleRect): Boolean; overload;
|
|
||||||
function RectIntersectsRectAlt(R1, R2: TRect): Boolean; overload;
|
|
||||||
function RotatePoint(const APoint: TDoublePoint; AAngle: Double): TDoublePoint; overload;
|
function RotatePoint(const APoint: TDoublePoint; AAngle: Double): TDoublePoint; overload;
|
||||||
function RotatePoint(const APoint: TPoint; AAngle: Double): TPoint; overload;
|
function RotatePoint(const APoint: TPoint; AAngle: Double): TPoint; overload;
|
||||||
function RotatePointX(AX, AAngle: Double): TPoint;
|
function RotatePointX(AX, AAngle: Double): TPoint;
|
||||||
@ -131,7 +129,7 @@ end;
|
|||||||
|
|
||||||
function DotProduct(A, B: TDoublePoint): Double;
|
function DotProduct(A, B: TDoublePoint): Double;
|
||||||
begin
|
begin
|
||||||
Result := A.X * B.X + A.Y + B.Y;
|
Result := A.X * B.X + A.Y * B.Y;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function DoublePoint(AX, AY: Double): TDoublePoint; inline;
|
function DoublePoint(AX, AY: Double): TDoublePoint; inline;
|
||||||
@ -617,18 +615,6 @@ begin
|
|||||||
RangesIntersect(a.Y, b.Y, AFixed.a.Y, AFixed.b.Y, a.Y, b.Y);
|
RangesIntersect(a.Y, b.Y, AFixed.a.Y, AFixed.b.Y, a.Y, b.Y);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function RectIntersectsRectAlt(R1, R2: TDoubleRect): Boolean;
|
|
||||||
begin
|
|
||||||
Result := RectIntersectsRect(R1, R2);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function RectIntersectsRectAlt(R1, R2: TRect): Boolean;
|
|
||||||
var
|
|
||||||
R: TRect;
|
|
||||||
begin
|
|
||||||
Result := IntersectRect(R, R1, R2);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function RotatePoint(const APoint: TDoublePoint; AAngle: Double): TDoublePoint;
|
function RotatePoint(const APoint: TDoublePoint; AAngle: Double): TDoublePoint;
|
||||||
var
|
var
|
||||||
sa, ca: Extended;
|
sa, ca: Extended;
|
||||||
|
Loading…
Reference in New Issue
Block a user