Created Mercator projection to convert between Geo location and planar projection point.

- MapGeo and MapPoint encapsulate geo location and planar projection point into classes.

#story[928]
This commit is contained in:
Haoming Yin
2017-05-15 12:24:36 +12:00
parent 189ba93e64
commit 5cc865f0af
6 changed files with 119 additions and 13 deletions
@@ -0,0 +1,27 @@
package seng302.models.map;
class MapGeo {
private double lat, lng;
MapGeo(double lat, double lng) {
this.lat = lat;
this.lng = lng;
}
double getLat() {
return lat;
}
void setLat(double lat) {
this.lat = lat;
}
double getLng() {
return lng;
}
void setLng(double lng) {
this.lng = lng;
}
}