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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user