Implementing the boats movement throught a race
-Not complete! Still need to create function to calculate new coordinates -Doesn't run because of problems with resource folder #refactor
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package seng302;
|
||||
|
||||
/**
|
||||
* Created by esa46 on 15/03/17.
|
||||
*/
|
||||
public class GPSCoordinate {
|
||||
|
||||
private double latitude;
|
||||
private double longitude;
|
||||
|
||||
public GPSCoordinate(double latitude, double longitude) { this.latitude = latitude; this.longitude = longitude; }
|
||||
|
||||
public double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user