gps.convert
Class Conv

java.lang.Object
  extended by gps.convert.Conv

public final class Conv
extends java.lang.Object

Implement some conversion functions

Author:
Mario De Weerd

Constructor Summary
Conv()
           
 
Method Summary
static double bilinear(double x1, double y1, double x2, double y2, double x, double y, double z11, double z12, double z21, double z22)
           
static double calcR(double p_lat)
           
static double earthDistance(double lat1, double lon1, double lat2, double lon2)
           
static int hex2Int(java.lang.String hexStr)
          Convert a string in hexadecimal to the corresponding int.
static int hex2SignedInt(java.lang.String hexStr)
          Convert a string in hexadecimal to the corresponding int.
static int hexStringToBytes(java.lang.String hexStr, byte[] buffer)
          Convert a string in hexadecimal to a list of bytes
static double rad2deg(double x)
           
static void setGeoidIF(GeoidIF geoidIF)
          Set the class to use for geoid calculation.
static double wgs84Separation(double lat, double lon)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Conv

public Conv()
Method Detail

hexStringToBytes

public static final int hexStringToBytes(java.lang.String hexStr,
                                         byte[] buffer)
Convert a string in hexadecimal to a list of bytes

Parameters:
hexStr - Hexadecimal representation of bytes
Returns:
list of bytes

hex2Int

public static final int hex2Int(java.lang.String hexStr)
Convert a string in hexadecimal to the corresponding int.

Parameters:
hexStr - Hexadecimal representation of bytes
Returns:
list of bytes

hex2SignedInt

public static final int hex2SignedInt(java.lang.String hexStr)
Convert a string in hexadecimal to the corresponding int. Consider hex signed.

Parameters:
hexStr - Hexadecimal representation of bytes
Returns:
list of bytes

bilinear

public static final double bilinear(double x1,
                                    double y1,
                                    double x2,
                                    double y2,
                                    double x,
                                    double y,
                                    double z11,
                                    double z12,
                                    double z21,
                                    double z22)

setGeoidIF

public static final void setGeoidIF(GeoidIF geoidIF)
Set the class to use for geoid calculation.

Parameters:
geoidIF -

wgs84Separation

public static final double wgs84Separation(double lat,
                                           double lon)

rad2deg

public static final double rad2deg(double x)

earthDistance

public static final double earthDistance(double lat1,
                                         double lon1,
                                         double lat2,
                                         double lon2)

calcR

public static final double calcR(double p_lat)