diff options
author | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 13:06:00 -0500 |
---|---|---|
committer | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 13:06:00 -0500 |
commit | 603d7e015bb60eeafa49bf42c2c747c8846e6c46 (patch) | |
tree | 7b5efd06f51ccb9eb60eae3c903aa57d90045e4c /src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java | |
parent | b8c30e5edd18fc830b944431fda32334af1f9801 (diff) |
Use altitude to color planes
Diffstat (limited to 'src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java')
-rw-r--r-- | src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java b/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java index 5cd5535..d3eda40 100644 --- a/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java +++ b/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java @@ -6,10 +6,12 @@ package com.benburwell.planes.gui.aircraftmap; public class GeoPoint { private double latitude; private double longitude; + private double altitude; - public GeoPoint(double latitude, double longitude) { + public GeoPoint(double latitude, double longitude, double altitude) { this.latitude = latitude; this.longitude = longitude; + this.altitude = altitude; } public int getX(AircraftMap map) { @@ -27,4 +29,8 @@ public class GeoPoint { int yPosition = (int) (centerPixels + pixelsFromCenter); return yPosition; } + + public double getAltitude() { + return this.altitude; + } } |