FACT++  1.0
double palPa ( double  ha,
double  dec,
double  phi 
)

Definition at line 83 of file palPa.c.

Referenced by t_pa().

83  {
84  double cp, sqsz, cqsz;
85 
86  cp = cos(phi);
87  sqsz = cp * sin(ha);
88  cqsz = sin(phi) * cos(dec) - cp * sin(dec) * cos(ha);
89  if (sqsz == 0.0 && cqsz == 0.0) cqsz = 1.0;
90  return atan2( sqsz, cqsz );
91 }

+ Here is the caller graph for this function: