Class RadarMN2
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.RadarMN2
-
public class RadarMN2 extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RadarMN2.MercatorProjection
static class
RadarMN2.MercatorProjectionTile
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BBOX
static int
WIDTH_SCALE2
-
Constructor Summary
Constructors Constructor Description RadarMN2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bitmap
getBitmap(Context context, int count)
static double[]
getDestinationCoordinates(double startGeoX, double startGeoY, double bearing, double distance)
Calculates the destination coorinates from a given starting point, bearing and distancestatic int
getFixedRadarMapHeight(Context context)
static int
getFixedRadarMapWidth(Context context)
static int
getMapResource(Context context)
static int[]
getPixels(Context context)
static RadarMN2.MercatorProjectionTile
getRadarMapMercatorProjectionTile(Context context)
static Bitmap
getScaledBitmap(Context context, int count)
static int
getScaleFactor(Context context)
static int
getTrueScaleFactor(Context context)
-
-
-
Field Detail
-
WIDTH_SCALE2
public static final int WIDTH_SCALE2
- See Also:
- Constant Field Values
-
BBOX
public static final java.lang.String BBOX
- See Also:
- Constant Field Values
-
-
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 degreesstartGeoY
- y-coordinate (latitude) in degreesbearing
- bearing in degreesdistance
- distance in km- Returns:
- a double pair representing the destination point (x (longitude) and y (latitude)) in degrees.
-
getRadarMapMercatorProjectionTile
public static RadarMN2.MercatorProjectionTile getRadarMapMercatorProjectionTile(Context context)
-
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)
-
-