FACT++  1.0
double eraSepp ( double  a[3],
double  b[3] 
)

Definition at line 3 of file sepp.c.

References eraPdp(), eraPm(), and eraPxp().

Referenced by eraSeps(), palDsepv(), and t_sepp().

36 {
37  double axb[3], ss, cs, s;
38 
39 /* Sine of angle between the vectors, multiplied by the two moduli. */
40  eraPxp(a, b, axb);
41  ss = eraPm(axb);
42 
43 /* Cosine of the angle, multiplied by the two moduli. */
44  cs = eraPdp(a, b);
45 
46 /* The angle. */
47  s = ((ss != 0.0) || (cs != 0.0)) ? atan2(ss, cs) : 0.0;
48 
49  return s;
50 
51 }
double eraPdp(double a[3], double b[3])
Definition: pdp.c:3
double eraPm(double p[3])
Definition: pm.c:3
void eraPxp(double a[3], double b[3], double axb[3])
Definition: pxp.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: