altosdroid: Add offline map tab
[fw/altos] / altoslib / AltosPointInt.java
index e133ae9c81165afde4d98f994b6b951aef83d6f9..5d884391c8b5502d5d0a679cc72e75a047d6ed58 100644 (file)
@@ -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);
+       }
 }