|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.wisc.ssec.mcidas.ConversionUtility
public class ConversionUtility
A collection of methods for doing various conversions.
Constructor Summary | |
---|---|
ConversionUtility()
|
Method Summary | |
---|---|
static float |
FloatLatLon(int dddmmss)
Convert a latitude or longitude in dddmmss format to floating point. |
static double |
GouldToNative(int inVal)
Convert a Gould format floating point number to native double format |
static float |
LatLonToDistance(float lat1,
float lon1,
float lat2,
float lon2)
Find the distance in km between two points given the lats/lons. |
static void |
swap(int[] array,
int first,
int last)
swap the bytes of an integer array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversionUtility()
Method Detail |
---|
public static float LatLonToDistance(float lat1, float lon1, float lat2, float lon2)
lat1
- - latitude of first pointlat2
- - latitude of second pointlon1
- - longitude of first pointlon2
- - longitude of second point
public static float FloatLatLon(int dddmmss)
dddmmss
- - latitude or longitude
public static double GouldToNative(int inVal)
inVal
- - input Gould value
public static void swap(int[] array, int first, int last)
array
- array of integers to be flippedfirst
- starting element of the arraylast
- last element of array to flip
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |