Switched latitude/longitude around

We were using latitude on the x plane and longitude on the y plane

#story[9] #fix
This commit is contained in:
Erika Savell
2017-03-20 16:40:32 +13:00
parent 3afa13d24b
commit a9601eb760
10 changed files with 24 additions and 36 deletions
@@ -4,6 +4,8 @@ package seng302.Model;
import org.junit.Test;
import seng302.GPSCoordinate;
import java.awt.geom.Point2D;
import static org.junit.Assert.assertEquals;
/**
@@ -14,7 +16,8 @@ public class ConstantVelocityRaceTest {
@Test
public void travelling5nmNorthGivesCorrectNewCoordinates() {
GPSCoordinate oldPos = new GPSCoordinate(0, 0);
System.out.println(ConstantVelocityRace.calculatePosition(oldPos, 5, 0).getLatitude());
GPSCoordinate newPos = ConstantVelocityRace.calculatePosition(oldPos, 5, 0);
// assertEquals(newPos.getLatitude(), 0.08374461297528203, );
// assertEquals(ConstantVelocityRace.calculatePosition(oldPos, 5, 90).getLatitude(), 0.08, 1e-1);
System.out.println(ConstantVelocityRace.calculatePosition(oldPos, 5, 0).getLongitude());
}