public class ConversionUtility extends Object
Constructor and Description |
---|
ConversionUtility() |
Modifier and Type | Method and Description |
---|---|
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
|
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 pointpublic static float FloatLatLon(int dddmmss)
dddmmss
- - latitude or longitudepublic static double GouldToNative(int inVal)
inVal
- - input Gould valuepublic 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 flipCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.