Public Member Functions | Public Attributes | Friends

Geocentric::Point3D Class Reference

List of all members.

Public Member Functions

 Point3D (double lat=0.0, double lon=0.0, double alt=0.0)
 constructor
 Point3D (const Geocentric::Point3D &p)
 copy constructor
Point3Doperator= (const Geocentric::Point3D &p)
 affectation constructor
void set (double lat=0.0, double lon=0.0, double alt=0.0)
 general setter
Spherical::Point3D to_spherical (void) const
 convert to spherical coordinates
Carthesian::Point3D to_carthesian () const
 convert to carthesian coordinates. Spherical earth model is assumed

Public Attributes

double lat
double lon
double alt

Friends

std::ostream & operator<< (std::ostream &os, const Point3D &p)
 content printer

Detailed Description

3D point in Geocentric coordinates. Spherical earth model is assumed


Constructor & Destructor Documentation

Geocentric::Point3D::Point3D ( double  lat = 0.0,
double  lon = 0.0,
double  alt = 0.0 
)

constructor

Parameters:
lat latitude in degrees from north pole
lon longitude in degrees from greenwich meridian
alt altitude above mean-sea level in meters

Referenced by to_spherical().

Geocentric::Point3D::Point3D ( const Geocentric::Point3D p  ) 

copy constructor

Parameters:
p point to copy

References alt, lat, and lon.


Member Function Documentation

Geocentric::Point3D & Geocentric::Point3D::operator= ( const Geocentric::Point3D p  ) 

affectation constructor

Parameters:
p point to copy

References alt, lat, and lon.

void Geocentric::Point3D::set ( double  lat = 0.0,
double  lon = 0.0,
double  alt = 0.0 
)

general setter

Parameters:
lat latitude in degrees from north pole
lon longitude in degrees from greenwich meridian
alt altitude above mean-sea level in meters
Carthesian::Point3D Geocentric::Point3D::to_carthesian ( void   )  const

convert to carthesian coordinates. Spherical earth model is assumed

Returns:
P in carthesian coordinates

References Spherical::Point3D::to_carthesian(), and to_spherical().

Spherical::Point3D Geocentric::Point3D::to_spherical ( void   )  const

convert to spherical coordinates

Returns:
P in spherical coordinates

References alt, Earth::get_radius(), lat, lon, and Point3D().

Referenced by to_carthesian().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Point3D p 
) [friend]

content printer

Parameters:
os output flux
pixel current oject alias
Returns:
the content description added to the output flux

Member Data Documentation

altitude above mean-sea level in meters

Referenced by operator=(), Point3D(), and to_spherical().

latitude in degrees from north pole

Referenced by operator=(), Point3D(), and to_spherical().

longitude in degrees from greenwich meridian

Referenced by operator=(), Point3D(), and to_spherical().


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