PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ point_shift()

void point_shift ( GEOGRAPHIC_POINT p,
double  shift 
)

Shift a point around by a number of radians.

Definition at line 160 of file lwgeodetic.c.

161 {
162  double lon = p->lon + shift;
163  if ( lon > M_PI )
164  p->lon = -1.0 * M_PI + (lon - M_PI);
165  else
166  p->lon = lon;
167  return;
168 }

References GEOGRAPHIC_POINT::lon.

Referenced by ptarray_area_spheroid().

Here is the caller graph for this function: