PostGIS  2.2.8dev-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 136 of file lwgeodetic.c.

References GEOGRAPHIC_POINT::lon.

Referenced by ptarray_area_spheroid().

137 {
138  double lon = p->lon + shift;
139  if ( lon > M_PI )
140  p->lon = -1.0 * M_PI + (lon - M_PI);
141  else
142  p->lon = lon;
143  return;
144 }
Here is the caller graph for this function: