diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000..e7bedf33
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/racevisionGame/src/main/java/mock/model/NewPolars.java b/racevisionGame/src/main/java/mock/model/NewPolars.java
index 20d89c04..7f0d917f 100644
--- a/racevisionGame/src/main/java/mock/model/NewPolars.java
+++ b/racevisionGame/src/main/java/mock/model/NewPolars.java
@@ -179,13 +179,39 @@ public class NewPolars {
}
+ /**
+ * gets the angle bound between 0 and 360 following modular arithmetic
+ * @param angle angle to modulate
+ * @return resultant angle after modulation.
+ */
public static double modulateAngle(double angle){
return (angle % 360 + 360) % 360;
}
+ /**
+ * DO NOT DELETE THIS FUNCTIONS THEY ARE USED FOR TESTING PURPOSES
+ * @return current polars map
+ */
@SuppressWarnings("unused")
private Map> getPolars(){
//this function is just for testing so therefore it is private
return polars;
}
+
+ /**
+ * DO NOT DELETE THESE FUNCTIONS THEY ARE USED FOR TESTING PURPOSES
+ * @return nothing
+ */
+ @SuppressWarnings("unused")
+ private void printOutLinearInterpolated(){
+ for (double tws: polars.keySet()){
+ System.out.println("==================================================");
+ System.out.println("Speed: " + tws);
+ System.out.println("==================================================");
+ for (double twa: polars.get(tws).keySet()){
+ System.out.println("TWA: " + twa + ", Boat Speed: " + polars.get(tws).get(twa));
+ }
+ }
+ }
+
}
diff --git a/racevisionGame/src/test/java/shared/model/BearingTest.java b/racevisionGame/src/test/java/shared/model/BearingTest.java
deleted file mode 100644
index 876a0deb..00000000
--- a/racevisionGame/src/test/java/shared/model/BearingTest.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package shared.model;
-
-public class BearingTest {
-//TODO
-}