From 7975d088a4ac44c0943134fa41d0e3b88f50b98f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 26 May 2015 19:47:04 -0700 Subject: altosdroid: Add offline map tab It's not very fancy yet, but it does zoom and pan, and show the path of the rocket with a line. Signed-off-by: Keith Packard --- altoslib/AltosPointInt.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'altoslib/AltosPointInt.java') diff --git a/altoslib/AltosPointInt.java b/altoslib/AltosPointInt.java index e133ae9c..5d884391 100644 --- a/altoslib/AltosPointInt.java +++ b/altoslib/AltosPointInt.java @@ -28,4 +28,14 @@ public class AltosPointInt { this.x = x; this.y = y; } + + public AltosPointInt(double x, double y) { + this.x = (int) (x + 0.5); + this.y = (int) (y + 0.5); + } + + public AltosPointInt(AltosPointDouble pt_d) { + this.x = (int) (pt_d.x + 0.5); + this.y = (int) (pt_d.y + 0.5); + } } -- cgit v1.2.3