Definition at line 68 of file lwt_edgeend.c.
69{
74
77 outgoing ? 0 : pa->npoints-1,
78 outgoing ? 1 : -1,
79 &(ee->p0),
80 &(ee->p1)
81 );
82 if (!ret)
83 {
85 return NULL;
86 }
87
89 lwerror(
"error computing azimuth of endpoint [%.15g %.15g,%.15g %.15g]",
92 );
93 return NULL;
94 }
95
96 LWDEBUGF(1,
"Azimuth of segment [%.15g %.15g,%.15g %.15g] = %.15g",
100 );
101
102 return ee;
103}
int azimuth_pt_pt(const POINT2D *p1, const POINT2D *p2, double *ret)
Compute the azimuth of segment AB in radians.
void * lwalloc(size_t size)
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static int _lwt_DistinctVertexes2D(const POINTARRAY *pa, int from, int dir, POINT2D *p0, POINT2D *p1)
const LWT_ISO_EDGE * edge
References _lwt_DistinctVertexes2D(), LWT_EDGEEND_t::azimuth, azimuth_pt_pt(), LWT_EDGEEND_t::edge, LWT_ISO_EDGE::edge_id, LWT_ISO_EDGE::geom, lwalloc(), LWDEBUGF, lwerror(), LWTFMT_ELEMID, POINTARRAY::npoints, LWT_EDGEEND_t::outgoing, LWT_EDGEEND_t::p0, LWT_EDGEEND_t::p1, LWLINE::points, POINT2D::x, and POINT2D::y.
Referenced by lwt_edgeEndStar_addEdge().