Class RadarMN2


  • public class RadarMN2
    extends java.lang.Object
    • Constructor Detail

      • RadarMN2

        public RadarMN2()
    • Method Detail

      • getScaleFactor

        public static final int getScaleFactor​(Context context)
      • getTrueScaleFactor

        public static final int getTrueScaleFactor​(Context context)
      • getMapResource

        public static int getMapResource​(Context context)
      • getFixedRadarMapWidth

        public static int getFixedRadarMapWidth​(Context context)
      • getFixedRadarMapHeight

        public static int getFixedRadarMapHeight​(Context context)
      • getDestinationCoordinates

        public static double[] getDestinationCoordinates​(double startGeoX,
                                                         double startGeoY,
                                                         double bearing,
                                                         double distance)
        Calculates the destination coorinates from a given starting point, bearing and distance
        Parameters:
        startGeoX - x-coorinate (longitude) in degrees
        startGeoY - y-coordinate (latitude) in degrees
        bearing - bearing in degrees
        distance - distance in km
        Returns:
        a double pair representing the destination point (x (longitude) and y (latitude)) in degrees.
      • getPixels

        public static int[] getPixels​(Context context)
      • getBitmap

        public static Bitmap getBitmap​(Context context,
                                       int count)
      • getScaledBitmap

        public static Bitmap getScaledBitmap​(Context context,
                                             int count)