Importing geotools library to calculate next coordinate for boat
-Currently getting ClassDefNotFound error - I think one of th elibraries dependencies is visible and compile time not runtime #story[9] #implement
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package seng302.Model;
|
||||
|
||||
|
||||
import org.junit.Test;
|
||||
import seng302.GPSCoordinate;
|
||||
|
||||
@@ -11,7 +12,7 @@ public class ConstantVelocityRaceTest {
|
||||
@Test
|
||||
public void travelling5nmNorthGivesCorrectNewCoordinates() {
|
||||
GPSCoordinate oldPos = new GPSCoordinate(0, 0);
|
||||
System.out.print(ConstantVelocityRace.calculate_position(oldPos, 1, 0).getLatitude());
|
||||
|
||||
System.out.println(ConstantVelocityRace.calculatePosition(oldPos, 18520, 90).getLatitude());
|
||||
System.out.println(ConstantVelocityRace.calculatePosition(oldPos, 18520, 90).getLongitude());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user