FACT++  1.0
int eraGd2gce ( double  a,
double  f,
double  elong,
double  phi,
double  height,
double  xyz[3] 
)

Definition at line 3 of file gd2gce.c.

References height.

Referenced by eraGd2gc(), and t_gd2gce().

61 {
62  double sp, cp, w, d, ac, as, r;
63 
64 /* Functions of geodetic latitude. */
65  sp = sin(phi);
66  cp = cos(phi);
67  w = 1.0 - f;
68  w = w * w;
69  d = cp*cp + w*sp*sp;
70  if ( d <= 0.0 ) return -1;
71  ac = a / sqrt(d);
72  as = w * ac;
73 
74 /* Geocentric vector. */
75  r = (ac + height) * cp;
76  xyz[0] = r * cos(elong);
77  xyz[1] = r * sin(elong);
78  xyz[2] = (as + height) * sp;
79 
80 /* Success. */
81  return 0;
82 
83 }
float height
Definition: HeadersGPS.h:26

+ Here is the caller graph for this function: