Changeset 306 for trunk/UGeometry.pas


Ignore:
Timestamp:
Sep 5, 2020, 8:10:03 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Build under Lazarus 2.0.10.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGeometry.pas

    r258 r306  
    2626    //class operator Divide(const A, B: TGPoint<T>): TGPoint<T>;
    2727    //class operator Modulus(A: TGPoint<T>; B: TGPoint<T>): TGPoint<T>;
    28     function Min(const A, B: TGPoint<T>): TGPoint<T>;
    29     function Max(const A, B: TGPoint<T>): TGPoint<T>;
     28    class function Min(const A, B: TGPoint<T>): TGPoint<T>; static;
     29    class function Max(const A, B: TGPoint<T>): TGPoint<T>; static;
    3030    procedure Rotate(Base: TGPoint<T>; Angle: Double);
    3131  end;
     
    500500end;
    501501
    502 function TGPoint<T>.Min(const A, B: TGPoint<T>): TGPoint<T>;
     502class function TGPoint<T>.Min(const A, B: TGPoint<T>): TGPoint<T>;
    503503begin
    504504  if A.X < B.X then Result.X := A.X else Result.X := B.X;
     
    506506end;
    507507
    508 function TGPoint<T>.Max(const A, B: TGPoint<T>): TGPoint<T>;
     508class function TGPoint<T>.Max(const A, B: TGPoint<T>): TGPoint<T>;
    509509begin
    510510  if A.X > B.X then Result.X := A.X else Result.X := B.X;
Note: See TracChangeset for help on using the changeset viewer.