39 const double QgsClipper::SMALL_NUM = 1e-12;
45 double p0x, p0y, p1x = 0.0, p1y = 0.0;
47 double lastClipX = 0.0, lastClipY = 0.0;
50 line.reserve( nPoints + 1 );
52 for (
int i = 0; i < nPoints; ++i )
71 p0x, p0y, p1x_c, p1y_c ) )
77 connectSeparatedLines( lastClipX, lastClipY, p0x, p0y, clipExtent, line );
79 if ( line.empty() || newLine )
82 line << QPointF( p0x, p0y );
88 line << QPointF( p1x_c, p1y_c );
95 void QgsClipper::connectSeparatedLines(
double x0,
double y0,
double x1,
double y1,