Added comment.

main
fjc40 8 years ago
parent b07c30704a
commit 5a03d97713

@ -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);
}

Loading…
Cancel
Save