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 MapPoint {
private double x, y;
MapPoint(double x, double y) {
this.x = x;
this.y = y;
}
double getX() {
return x;
}
void setX(double x) {
this.x = x;
}
double getY() {
return y;
}
void setY(double y) {
this.y = y;
}
}