Typedefs | Enumerations | Functions

Earth Namespace Reference

Typedefs

typedef enum Earth::Model Model

Enumerations

enum  Model { SPHERICAL_MODEL = 0, WGS84_MODEL }

Functions

double get_radius ()
 return the distance to the center of the earth in meters Based on the WGS84 conventions, if the earth is considered as :

  • a sphere, it will have a radius of 6371007.2 m
  • an ellipsoid, the equatorial radius will be 6378137.0 m and the polar 6356752.3142 m


Detailed Description

geometry constants of the earth Source : http://en.wikipedia.org/wiki/Earth_radius


Enumeration Type Documentation

define the earth model to use


Function Documentation

double Earth::get_radius (  ) 

return the distance to the center of the earth in meters Based on the WGS84 conventions, if the earth is considered as :

  • a sphere, it will have a radius of 6371007.2 m
  • an ellipsoid, the equatorial radius will be 6378137.0 m and the polar 6356752.3142 m

Returns:
the radius of the earth in meters, eventually at the given latitude

Referenced by Viewing::alt_to_range(), Geocentric::get_haversine_dist(), Spherical::Point3D::to_geocentric(), and Geocentric::Point3D::to_spherical().