PostGIS  2.3.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 151 of file lwgeodetic.c.

References GEOGRAPHIC_POINT::lon.

Referenced by ptarray_area_spheroid().

152 {
153  double lon = p->lon + shift;
154  if ( lon > M_PI )
155  p->lon = -1.0 * M_PI + (lon - M_PI);
156  else
157  p->lon = lon;
158  return;
159 }
Here is the caller graph for this function: