Changeset 333 for Generics/TemplateGenerics/Generic/GenericPoint.inc
- Timestamp:
- Feb 20, 2012, 12:48:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericPoint.inc
r101 r333 1 1 {$IFDEF INTERFACE} 2 2 3 // TGPoint<TPoint Coord, TPointType> = class3 // TGPoint<TPointType> = class 4 4 TGPoint = class 5 Coordinate: array[TGPointIndex] of TGPointType; 6 //procedure SetArray(Items: array[TGPointIndex] of TGPointType); 5 X: TGPointType; 6 Y: TGPointType; 7 procedure Add(Point: TGPoint); 7 8 end; 8 9 … … 12 13 {$IFDEF IMPLEMENTATION} 13 14 15 procedure TGPoint.Add(Point: TGPoint); 16 begin 17 X := X + Point.X; 18 Y := Y + Point.Y; 19 end; 14 20 15 21 {$UNDEF IMPLEMENTATION}
Note:
See TracChangeset
for help on using the changeset viewer.