Added comment.

This commit is contained in:
fjc40
2017-08-14 13:01:27 +12:00
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);
}