Definition at line 1725 of file lwgeom_topo.c.
References getPoint2d_p(), POINTARRAY::npoints, p2d_same(), LWLINE::points, POINT2D::x, and POINT2D::y.
Referenced by _lwt_AddFaceSplit(), and lwt_ChangeEdgeGeom().
1731 if ( pa->
npoints < 2 )
return 0;
1735 for (i=1; i<pa->
npoints-1; ++i)
1738 if (
p2d_same(&tp, &fp) )
continue;
1739 if (
p2d_same(&tp, &lp) )
continue;
1749 if (
p2d_same(&fp, &lp) )
return 0;
1751 ip->
x = fp.
x + ( (lp.
x - fp.
x) * 0.5 );
1752 ip->
y = fp.
y + ( (lp.
y - fp.
y) * 0.5 );
int p2d_same(const POINT2D *p1, const POINT2D *p2)
int getPoint2d_p(const POINTARRAY *pa, int n, POINT2D *point)