Changeset 29 for trunk/UGeometric.pas


Ignore:
Timestamp:
Apr 18, 2015, 11:28:16 AM (9 years ago)
Author:
chronos
Message:
  • Added: Not finished support for map rivers.
  • Added: Design a prototype of better track structure in UTrack.
  • Added: To allow zooming of graphic canvas should store drawing elements in abstract structure TMetaCanvas.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGeometric.pas

    r28 r29  
    2323function ArcTanPoint(Point: TPoint): Float;
    2424function RectEquals(A, B: TRect): Boolean;
     25function RectEnlarge(Rect: TRect; Value: Integer): TRect;
    2526
    2627implementation
     
    132133end;
    133134
     135function RectEnlarge(Rect: TRect; Value: Integer): TRect;
     136begin
     137  Rect.Left := Rect.Left - Value;
     138  Rect.Right := Rect.Right + Value;
     139  Rect.Top := Rect.Top - Value;
     140  Rect.Bottom := Rect.Bottom + Value;
     141end;
     142
    134143
    135144end.
Note: See TracChangeset for help on using the changeset viewer.