dtn::utils::Utils Class Reference

#include <Utils.h>

List of all members.

Static Public Member Functions

static vector< string > tokenize (string token, string data)
static double distance (double lat1, double lon1, double lat2, double lon2)

Static Private Member Functions

static double toRad (double value)

Static Private Attributes

static const double pi = 3.14159


Member Function Documentation

vector< string > dtn::utils::Utils::tokenize ( string  token,
string  data 
) [static]

double dtn::utils::Utils::distance ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
) [static]

calculate the distance between two coordinates. (Latitude, Longitude)

References toRad().

double dtn::utils::Utils::toRad ( double  value  )  [static, private]

References pi.

Referenced by distance().


Member Data Documentation

const double dtn::utils::Utils::pi = 3.14159 [static, private]

Referenced by toRad().


The documentation for this class was generated from the following files:

Generated on Wed Mar 25 12:41:50 2009 for IBR-DTN by  doxygen 1.5.6