Public Member Functions | |
| Point3D (double r=0.0, double theta=0.0, double phi=0.0) | |
| constructor | |
| Point3D (const Spherical::Point3D &p) | |
| copy constructor | |
| Point3D & | operator= (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 | |
3D point in spherical geometry
| Spherical::Point3D::Point3D | ( | double | r = 0.0, |
|
| double | theta = 0.0, |
|||
| double | phi = 0.0 | |||
| ) |
constructor
| 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 | ) |
| Spherical::Point3D & Spherical::Point3D::operator= | ( | const Spherical::Point3D & | p | ) |
| void Spherical::Point3D::set | ( | double | r = 0.0, |
|
| double | theta = 0.0, |
|||
| double | phi = 0.0 | |||
| ) |
general setter
| 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
References phi, Point3D(), r, and theta.
Referenced by Geocentric::Point3D::to_carthesian().
| Geocentric::Point3D Spherical::Point3D::to_geocentric | ( | void | ) | const |
convert to Geocentric coordinates
References Earth::get_radius(), phi, Point3D(), r, and theta.
Referenced by Carthesian::Point3D::to_geocentric().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Point3D & | p | |||
| ) | [friend] |
content printer
| os | output flux | |
| pixel | current oject alias |
| double Spherical::Point3D::phi |
azimuth angle in radians
Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().
| double Spherical::Point3D::r |
radius from center
Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().
| double Spherical::Point3D::theta |
zenith angle in radians (colatitude)
Referenced by operator=(), Point3D(), to_carthesian(), and to_geocentric().
1.7.1