Definition at line 1710 of file lwgeom_topo.c.
1716 if ( pa->
npoints < 2 )
return 0;
1720 for (i=1; i<pa->
npoints-1; ++i)
1723 if (
p2d_same(&tp, &fp) )
continue;
1724 if (
p2d_same(&tp, &lp) )
continue;
1734 if (
p2d_same(&fp, &lp) )
return 0;
1736 ip->
x = fp.
x + ( (lp.
x - fp.
x) * 0.5 );
1737 ip->
y = fp.
y + ( (lp.
y - fp.
y) * 0.5 );
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
int p2d_same(const POINT2D *p1, const POINT2D *p2)
References getPoint2d_p(), POINTARRAY::npoints, p2d_same(), LWLINE::points, POINT2D::x, and POINT2D::y.
Referenced by _lwt_AddFaceSplit(), and lwt_ChangeEdgeGeom().