39 const double QgsClipper::SMALL_NUM = 1e-12;
48 const int nPoints = curve.size();
50 double p0x, p0y, p1x = 0.0, p1y = 0.0;
52 double lastClipX = 0.0, lastClipY = 0.0;
55 line.reserve( nPoints + 1 );
57 const QPointF *curveData = curve.data();
59 for (
int i = 0; i < nPoints; ++i )
77 p0x, p0y, p1x_c, p1y_c ) )
83 connectSeparatedLines( lastClipX, lastClipY, p0x, p0y, clipExtent, line );
85 if ( line.empty() || newLine )
88 line << QPointF( p0x, p0y );
94 line << QPointF( p1x_c, p1y_c );
102 void QgsClipper::connectSeparatedLines(
double x0,
double y0,
double x1,
double y1,