Definition at line 1708 of file lwgeom_topo.c.
1714 if ( pa->
npoints < 2 )
return 0;
1718 for (i=1; i<pa->
npoints-1; ++i)
1721 if (
p2d_same(&tp, &fp) )
continue;
1722 if (
p2d_same(&tp, &lp) )
continue;
1732 if (
p2d_same(&fp, &lp) )
return 0;
1734 ip->
x = fp.
x + ( (lp.
x - fp.
x) * 0.5 );
1735 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_ChangeEdgeGeom().