Definition at line 1449 of file lwgeom_topo.c.
References _lwt_FirstDistinctVertex2D(), azimuth_pt_pt(), edgeend_t::ccwFace, edgeend_t::cwFace, LWDEBUG, LWDEBUGF, lwerror(), edgeend_t::myaz, edgeend_t::nextCCW, edgeend_t::nextCW, POINTARRAY::npoints, LWLINE::points, POINT2D::x, and POINT2D::y.
Referenced by lwt_ChangeEdgeGeom().
1461 LWDEBUG(1,
"computing azimuth of first edge end");
1464 lwerror(
"Invalid edge (no two distinct vertices exist)");
1468 lwerror(
"error computing azimuth of first edgeend [%.15g %.15g,%.15g %.15g]",
1469 fp->
x, fp->
y, pt.
x, pt.
y);
1472 LWDEBUGF(1,
"azimuth of first edge end [%.15g %.15g,%.15g %.15g] is %g",
1473 fp->
x, fp->
y, pt.
x, pt.
y, fee->
myaz);
1476 LWDEBUG(1,
"computing azimuth of second edge end");
1479 lwerror(
"Invalid edge (no two distinct vertices exist)");
1483 lwerror(
"error computing azimuth of last edgeend [%.15g %.15g,%.15g %.15g]",
1484 lp->
x, lp->
y, pt.
x, pt.
y);
1487 LWDEBUGF(1,
"azimuth of last edge end [%.15g %.15g,%.15g %.15g] is %g",
1488 lp->
x, lp->
y, pt.
x, pt.
y, lee->
myaz);
static int _lwt_FirstDistinctVertex2D(const POINTARRAY *pa, POINT2D *ref, int from, int dir, POINT2D *op)
#define LWDEBUG(level, msg)
int azimuth_pt_pt(const POINT2D *p1, const POINT2D *p2, double *ret)
Compute the azimuth of segment AB in radians.
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.