PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ deltaLongitude()

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

Definition at line 142 of file lwgeom_spheroid.c.

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

References SPHEROID::f.

Referenced by distance_ellipse_calculation().

Here is the caller graph for this function: