24 #include "../postgis_config.h"
52 LWDEBUGF(1,
"first point is index %d", from);
54 for ( i = from+inc; i != toofar; i += inc )
89 lwerror(
"error computing azimuth of endpoint [%.15g %.15g,%.15g %.15g]",
96 LWDEBUGF(1,
"Azimuth of segment [%.15g %.15g,%.15g %.15g] = %.15g",
int azimuth_pt_pt(const POINT2D *p1, const POINT2D *p2, double *ret)
Compute the azimuth of segment AB in radians.
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
void * lwalloc(size_t size)
#define P2D_SAME_STRICT(a, b)
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
LWT_EDGEEND * lwt_edgeEnd_fromEdge(const LWT_ISO_EDGE *edge, int outgoing)
static int _lwt_DistinctVertexes2D(const POINTARRAY *pa, int from, int dir, POINT2D *p0, POINT2D *p1)
void lwt_edgeEnd_release(LWT_EDGEEND *end)
const LWT_ISO_EDGE * edge