|
|
|
|
@ -4,6 +4,7 @@ import javafx.beans.property.SimpleStringProperty;
|
|
|
|
|
import javafx.beans.property.StringProperty;
|
|
|
|
|
import javafx.scene.paint.Color;
|
|
|
|
|
import org.geotools.referencing.GeodeticCalculator;
|
|
|
|
|
import seng302.Constants;
|
|
|
|
|
import seng302.GPSCoordinate;
|
|
|
|
|
|
|
|
|
|
import java.awt.geom.Point2D;
|
|
|
|
|
@ -76,7 +77,7 @@ public class BoatInRace extends Boat {
|
|
|
|
|
|
|
|
|
|
public GPSCoordinate getWake() {
|
|
|
|
|
double reverseHeading = calculateHeading() - 180;
|
|
|
|
|
double distance = getVelocity();
|
|
|
|
|
double distance = Constants.wakeScale * getVelocity();
|
|
|
|
|
|
|
|
|
|
GeodeticCalculator calc = new GeodeticCalculator();
|
|
|
|
|
calc.setStartingGeographicPoint(
|
|
|
|
|
|