Public Member Functions | Public Attributes | Friends

Geodetic::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 Geodetic::Point3D &p)
 copy constructor
Point3Doperator= (const Geodetic::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. WGS84 ellipsoidal earth model is assumed

Public Attributes

double lat
double lon
double alt

Friends

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

Detailed Description

3D point in geodetic coordinates.


Constructor & Destructor Documentation

Geodetic::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 of ellipsoid level in meters

Referenced by to_spherical().

Geodetic::Point3D::Point3D ( const Geodetic::Point3D p  ) 

copy constructor

Parameters:
p point to copy

References alt, lat, and lon.


Member Function Documentation

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

affectation constructor

Parameters:
p point to copy

References alt, lat, and lon.

void Geodetic::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

Referenced by CALIOPFileData::get_viewing_directions(), and Carthesian::Point3D::to_geodetic().

Carthesian::Point3D Geodetic::Point3D::to_carthesian ( void   )  const

convert to carthesian coordinates. WGS84 ellipsoidal earth model is assumed

Returns:
P in carthesian coordinates

References alt, lat, and lon.

Referenced by Viewing::earth_to_sat_from_alt(), Viewing::earth_to_sat_from_range(), CALIOPFileData::get_viewing_directions(), and Carthesian::Segment3D::Segment3D().

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

convert to spherical coordinates

Returns:
P in spherical coordinates

References alt, lat, lon, and Point3D().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Geodetic::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 of ellipsoid in meters

Referenced by Viewing::alt_to_range(), operator=(), Point3D(), to_carthesian(), and to_spherical().

latitude in degrees from north pole

Referenced by Viewing::earth_to_sat_from_range(), operator=(), Point3D(), to_carthesian(), and to_spherical().

longitude in degrees from greenwich meridian

Referenced by Viewing::earth_to_sat_from_range(), operator=(), Point3D(), to_carthesian(), and to_spherical().


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