org.free.garminimg
Class CoordUtils
java.lang.Object
org.free.garminimg.CoordUtils
public abstract class CoordUtils
- extends java.lang.Object
Some utlity static methods for converting from and to garmin coordinates.
Method Summary |
static int |
fromWGS84(double coord)
|
static int |
fromWGS84Rad(double coord)
|
static boolean |
includedInCoordinates(int[] longitudes,
int[] latitudes,
int minLon,
int maxLon,
int minLat,
int maxLat)
|
static boolean |
includedInCoordinates(int longitude,
int latitude,
int minLon,
int maxLon,
int minLat,
int maxLat)
|
static boolean |
includedInCoordinates(int minLong1,
int maxLong1,
int minLat1,
int maxLat1,
int minLong2,
int maxLong2,
int minLat2,
int maxLat2)
|
static boolean |
matchesCoordinates(int[] longitudes,
int[] latitudes,
int nbPoints,
int minLon,
int maxLon,
int minLat,
int maxLat)
|
static boolean |
matchesCoordinates(int minLong1,
int maxLong1,
int minLat1,
int maxLat1,
int minLong2,
int maxLong2,
int minLat2,
int maxLat2)
|
static java.lang.String |
toDMS(int coord)
Convert a garmin coordinate into a String with degreesDminutes'seconds |
static double |
toWGS84(int coord)
|
static double |
toWGS84Rad(int coord)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordUtils
public CoordUtils()
matchesCoordinates
public static boolean matchesCoordinates(int minLong1,
int maxLong1,
int minLat1,
int maxLat1,
int minLong2,
int maxLong2,
int minLat2,
int maxLat2)
includedInCoordinates
public static boolean includedInCoordinates(int minLong1,
int maxLong1,
int minLat1,
int maxLat1,
int minLong2,
int maxLong2,
int minLat2,
int maxLat2)
- Returns:
- true if 1 is included in 2
toWGS84
public static double toWGS84(int coord)
toWGS84Rad
public static double toWGS84Rad(int coord)
fromWGS84
public static int fromWGS84(double coord)
fromWGS84Rad
public static int fromWGS84Rad(double coord)
toDMS
public static java.lang.String toDMS(int coord)
- Convert a garmin coordinate into a String with degreesDminutes'seconds
includedInCoordinates
public static boolean includedInCoordinates(int longitude,
int latitude,
int minLon,
int maxLon,
int minLat,
int maxLat)
includedInCoordinates
public static boolean includedInCoordinates(int[] longitudes,
int[] latitudes,
int minLon,
int maxLon,
int minLat,
int maxLat)
matchesCoordinates
public static boolean matchesCoordinates(int[] longitudes,
int[] latitudes,
int nbPoints,
int minLon,
int maxLon,
int minLat,
int maxLat)
Copyright © 2008. All Rights Reserved.