Classes | Functions

Geocentric Namespace Reference

Classes

class  Point3D

Functions

const double get_orthodormic_angle (double lat1, double lon1, double lat2, double lon2)
 compute the angle in radians between 2 points P1 and P2 on a sphere, represented by their (latitude, longitude) coordinates Source : http://www.faqs.org/faqs/geography/infosystems-faq/ ; Q5.1 Uses the Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159):
const double get_square_plane_dist (const double dlat, const double dlon)
 return the square plane distance between 2 points using their latitude and longitude difference
const double get_square_plane_dist (const double lat1, const double lon1, const double lat2, const double lon2)
 return the square plane distance between 2 points using their latitudes and longitudes
const double get_haversine_dist (double lat1, double lon1, double lat2, double lon2)
 compute the Haversine distance in km between 2 points P1 and P2 on the earth, represented by their (latitude, longitude) coordinates. Here, the earth is considered as an ideal sphere, using the authalic radius ("equal aera"), from http://en.wikipedia.org/wiki/Earth_radius Source : http://www.faqs.org/faqs/geography/infosystems-faq/ ; Q5.1 Uses the Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159):

Detailed Description

(lat, lon, alt) system geometry kernel. Here the coordinates named as "Geocentric" are the (latitude in degrees, longitude in degrees, and altitude above sea level in meters)


Function Documentation

const double Geocentric::get_haversine_dist ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

compute the Haversine distance in km between 2 points P1 and P2 on the earth, represented by their (latitude, longitude) coordinates. Here, the earth is considered as an ideal sphere, using the authalic radius ("equal aera"), from http://en.wikipedia.org/wiki/Earth_radius Source : http://www.faqs.org/faqs/geography/infosystems-faq/ ; Q5.1 Uses the Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159):

Parameters:
lat1 latitude of the 1st point, in degrees. In the range [ -90, 90 ]
lon1 longitude of the 1st point, in degrees. In the range ] -180, 180 ]
lat2 latitude of the 2nd point, in degrees. In the range [ -90, 90 ]
lon2 longitude of the 2nd point, in degrees. In the range ] -180, 180 ]
Returns:
the Haversine distance between P1 and P2 in m

References get_orthodormic_angle(), and Earth::get_radius().

Referenced by MODISFileData::get_index(), and MODISFileData::get_nearest_point_distance().

const double Geocentric::get_orthodormic_angle ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

compute the angle in radians between 2 points P1 and P2 on a sphere, represented by their (latitude, longitude) coordinates Source : http://www.faqs.org/faqs/geography/infosystems-faq/ ; Q5.1 Uses the Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159):

Parameters:
lat1 latitude of the 1st point, in degrees. In the range [ -90, 90 ]
lon1 longitude of the 1st point, in degrees. In the range ] -180, 180 ]
lat2 latitude of the 2nd point, in degrees. In the range [ -90, 90 ]
lon2 longitude of the 2nd point, in degrees. In the range ] -180, 180 ]
Returns:
the angle between P1 and P2 in radians

Referenced by get_haversine_dist().

const double Geocentric::get_square_plane_dist ( const double  lat1,
const double  lon1,
const double  lat2,
const double  lon2 
)

return the square plane distance between 2 points using their latitudes and longitudes

Parameters:
lat1 latitude of the first point, in degrees. In the range [ -90, 90 ]
lon1 longitude of the first point, in degrees. In the range ] -180, 180 ]
lat2 latitude of the 2nd point, in degrees. In the range [ -90, 90 ]
lon2 longitude of the 2nd point, in degrees. In the range ] -180, 180 ]
Returns:
the distance between the 2 points using the square plane approximation

References get_square_plane_dist().

const double Geocentric::get_square_plane_dist ( const double  dlat,
const double  dlon 
)

return the square plane distance between 2 points using their latitude and longitude difference

Parameters:
dlat latitude difference, in degrees. In the range [ -90, 90 ]
dlon longitude difference, in degrees. In the range ] -180, 180 ]
Returns:
the distance between the 2 points using the square plane approximation

Referenced by get_square_plane_dist().