PostGIS  2.1.10dev-r@@SVN_REVISION@@
void point_shift ( GEOGRAPHIC_POINT p,
double  shift 
)

Shift a point around by a number of radians.

Definition at line 137 of file lwgeodetic.c.

References GEOGRAPHIC_POINT::lon.

Referenced by ptarray_area_spheroid().

138 {
139  double lon = p->lon + shift;
140  if ( lon > M_PI )
141  p->lon = -1.0 * M_PI + (lon - M_PI);
142  else
143  p->lon = lon;
144  return;
145 }

Here is the caller graph for this function: