Public Member Functions | Public Attributes | Friends

Spherical::Point3D Class Reference

List of all members.

Public Member Functions

 Point3D (double r=0.0, double theta=0.0, double phi=0.0)
 constructor
 Point3D (const Spherical::Point3D &p)
 copy constructor
Point3Doperator= (const Spherical::Point3D &p)
 affectation constructor
void set (double r=0.0, double theta=0.0, double phi=0.0)
 general setter
Carthesian::Point3D to_carthesian (void) const
 convert to carthesian coordinates
Geocentric::Point3D to_geocentric (void) const
 convert to Geocentric coordinates

Public Attributes

double r
double theta
double phi

Friends

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

Detailed Description

3D point in spherical geometry


Constructor & Destructor Documentation

Spherical::Point3D::Point3D ( double  r = 0.0,
double  theta = 0.0,
double  phi = 0.0 
)

constructor

Parameters:
r the radius from center
theta the zenith angle in radians (ie colatitude)
phi the azimuth angle in radians

Referenced by to_carthesian(), and to_geocentric().

Spherical::Point3D::Point3D ( const Spherical::Point3D p  ) 

copy constructor

Parameters:
p point to copy

References phi, r, and theta.


Member Function Documentation

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

affectation constructor

Parameters:
p point to copy

References phi, r, and theta.

void Spherical::Point3D::set ( double  r = 0.0,
double  theta = 0.0,
double  phi = 0.0 
)

general setter

Parameters:
r the radius from center
theta the zenith angle in radians (ie colatitude)
phi the azimuth angle in radians
Carthesian::Point3D Spherical::Point3D::to_carthesian ( void   )  const

convert to carthesian coordinates

Returns:
P in carthesian coordinates

References phi, Point3D(), r, and theta.

Referenced by Geocentric::Point3D::to_carthesian().

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

convert to Geocentric coordinates

Returns:
P in Geocentric coordinates

References Earth::get_radius(), phi, Point3D(), r, and theta.

Referenced by Carthesian::Point3D::to_geocentric().


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

azimuth angle in radians

Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().

radius from center

Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().

zenith angle in radians (colatitude)

Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().


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