FACT++  1.0
void eraPb06 ( double  date1,
double  date2,
double *  bzeta,
double *  bz,
double *  btheta 
)

Definition at line 3 of file pb06.c.

References eraPmat06(), eraRz(), and ERFA_DSIGN.

Referenced by t_pb06().

69 {
70  double r[3][3], r31, r32;
71 
72 /* Precession matrix via Fukushima-Williams angles. */
73  eraPmat06(date1, date2, r);
74 
75 /* Solve for z. */
76  *bz = atan2(r[1][2], r[0][2]);
77 
78 /* Remove it from the matrix. */
79  eraRz(*bz, r);
80 
81 /* Solve for the remaining two angles. */
82  *bzeta = atan2 (r[1][0], r[1][1]);
83  r31 = r[2][0];
84  r32 = r[2][1];
85  *btheta = atan2(-ERFA_DSIGN(sqrt(r31 * r31 + r32 * r32), r[0][2]),
86  r[2][2]);
87 
88  return;
89 
90 }
void eraPmat06(double date1, double date2, double rbp[3][3])
Definition: pmat06.c:3
void eraRz(double psi, double r[3][3])
Definition: rz.c:3
#define ERFA_DSIGN(A, B)
Definition: erfam.h:131

+ Here is the call graph for this function:

+ Here is the caller graph for this function: