PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ deltaLongitude()

double deltaLongitude ( double  azimuth,
double  sigma,
double  tsm,
SPHEROID sphere 
)

Definition at line 143 of file lwgeom_spheroid.c.

144 {
145  /* compute the expansion C */
146  double das,C;
147  double ctsm,DL;
148 
149  das = cos(azimuth)*cos(azimuth);
150  C = sphere->f/16.0 * das * (4.0 + sphere->f * (4.0 - 3.0 * das));
151 
152  /* compute the difference in longitude */
153  ctsm = cos(tsm);
154  DL = ctsm + C * cos(sigma) * (-1.0 + 2.0 * ctsm*ctsm);
155  DL = sigma + C * sin(sigma) * DL;
156  return (1.0 - C) * sphere->f * sin(azimuth) * DL;
157 }
double f
Definition: liblwgeom.h:318

References SPHEROID::f.

Referenced by distance_ellipse_calculation(), and spheroid_parallel_arc_length().

Here is the caller graph for this function: