Changeset 306 for trunk/UGeometry.pas
- Timestamp:
- Sep 5, 2020, 8:10:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGeometry.pas
r258 r306 26 26 //class operator Divide(const A, B: TGPoint<T>): TGPoint<T>; 27 27 //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; 30 30 procedure Rotate(Base: TGPoint<T>; Angle: Double); 31 31 end; … … 500 500 end; 501 501 502 function TGPoint<T>.Min(const A, B: TGPoint<T>): TGPoint<T>;502 class function TGPoint<T>.Min(const A, B: TGPoint<T>): TGPoint<T>; 503 503 begin 504 504 if A.X < B.X then Result.X := A.X else Result.X := B.X; … … 506 506 end; 507 507 508 function TGPoint<T>.Max(const A, B: TGPoint<T>): TGPoint<T>;508 class function TGPoint<T>.Max(const A, B: TGPoint<T>): TGPoint<T>; 509 509 begin 510 510 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.