version  0.0.1
Defines the C++ API for MsPASS
SphericalCoordinate.h
1 #ifndef _SPHERICALCOORDINATE_H_
2 #define _SPHERICALCOORDINATE_H_
3 namespace mspass {
4 namespace utility{
14 typedef struct {
18  double radius;
22  double theta;
26  double phi;
32 SphericalCoordinate UnitVectorToSpherical(const double nu[3]);
37 double *SphericalToUnitVector(const SphericalCoordinate& sc);
39 double rad(const double theta_deg);
41 double deg(const double theta_rad);
42 } // end utility namespace
43 } // end namespace mspass declaration
44 #endif
Encapsulates spherical coordinates in a data structure.
Definition: SphericalCoordinate.h:14
double phi
Definition: SphericalCoordinate.h:26
double radius
Definition: SphericalCoordinate.h:18
double theta
Definition: SphericalCoordinate.h:22