Changeset 107 for trunk/UTrack.pas
- Timestamp:
- Oct 4, 2022, 3:53:47 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTrack.pas
r106 r107 130 130 UpPoint := BaseTrackPoint.GetNeighUp; 131 131 if Assigned(UpPoint) then begin 132 Result.Direction := SubPoint(UpPoint.Position, Position); 132 133 D := Distance(UpPoint.Position, Position); 133 134 if D > 0 then begin 134 Result.Direction := SubPoint(UpPoint.Position, Position);135 135 Result.Position := Point(Trunc(Position.X + Result.Direction.X * RelPos / D), 136 136 Trunc(Position.Y + Result.Direction.Y * RelPos / D)); 137 end else begin 138 Result.Position := Position; 137 139 end; 138 140 end;
Note:
See TracChangeset
for help on using the changeset viewer.