Changeset 90 for trunk/Packages/TemplateGenerics/Generic/GenericPoint.inc
- Timestamp:
- Sep 7, 2012, 6:45:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/TemplateGenerics/Generic/GenericPoint.inc
r84 r90 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.