Added comment.
This commit is contained in:
@@ -530,7 +530,7 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
||||
double[] yPoints = new double[boat.getTrack().size()];
|
||||
int index = 0;
|
||||
|
||||
//Draw each TrackPoint.
|
||||
//Copy trackpoint locations to x/y arrays.
|
||||
for (TrackPoint point : new ArrayList<>(boat.getTrack())) {
|
||||
|
||||
//Convert the GPSCoordinate to a screen coordinate.
|
||||
@@ -539,13 +539,9 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
||||
xPoints[index] = ((double)scaledCoordinate.getX());
|
||||
yPoints[index] = ((double)scaledCoordinate.getY());
|
||||
|
||||
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
gc.strokePolyline(xPoints, yPoints, xPoints.length);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user