diff options
author | Keith Packard <keithp@keithp.com> | 2015-06-20 11:53:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-06-22 21:04:43 -0700 |
commit | 3882e358b6f2970cb1afebcf2a71da34a57002df (patch) | |
tree | e6bcbb35908eff7be13c8ef9f0e649fa85f2643e /altoslib/AltosMapTransform.java | |
parent | 0cc03210d5d53d12604688f294b6ca39e3a025de (diff) |
altoslib: Clean up map tile removal
Remove them while walking the hash table, rather than creating a list
to remove.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosMapTransform.java')
-rw-r--r-- | altoslib/AltosMapTransform.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosMapTransform.java b/altoslib/AltosMapTransform.java index e0e8afb0..30994ecb 100644 --- a/altoslib/AltosMapTransform.java +++ b/altoslib/AltosMapTransform.java @@ -39,6 +39,10 @@ public class AltosMapTransform { return new AltosLatLon(lat,lon); } + public AltosLatLon lat_lon (AltosPointInt point) { + return lat_lon(new AltosPointDouble(point.x, point.y)); + } + public AltosPointDouble screen_point(AltosPointInt screen) { return new AltosPointDouble(screen.x + offset_x, screen.y + offset_y); } |