version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
SphericalCoordinate.h
1#ifndef _SPHERICALCOORDINATE_H_
2#define _SPHERICALCOORDINATE_H_
3namespace mspass {
4namespace utility {
15typedef struct {
19 double radius;
24 double theta;
29 double phi;
35SphericalCoordinate UnitVectorToSpherical(const double nu[3]);
40double *SphericalToUnitVector(const SphericalCoordinate &sc);
42double rad(const double theta_deg);
44double deg(const double theta_rad);
45} // namespace utility
46} // namespace mspass
47#endif
Encapsulates spherical coordinates in a data structure.
Definition SphericalCoordinate.h:15
double phi
Definition SphericalCoordinate.h:29
double radius
Definition SphericalCoordinate.h:19
double theta
Definition SphericalCoordinate.h:24