src/ccstruct/quspline.cpp
bool QSPLINE::overlap( // test overlap
    QSPLINE *spline2,  // 2 cannot be smaller
    double fraction    // by more than this
) {
  int leftlimit = xcoords[1];             /*common left limit */
  int rightlimit = xcoords[segments - 1]; /*common right limit */
                                          /*or too non-overlap */
  return !(spline2->segments < 3 ||
           spline2->xcoords[1] > leftlimit + fraction * (rightlimit - leftlimit) ||
           spline2->xcoords[spline2->segments - 1] <
               rightlimit - fraction * (rightlimit - leftlimit));
}
/**********************************************************************
 * QSPLINE::overlap
 *
 * Return true if spline2 overlaps this by no more than fraction less
 * than the bounds of this.
 **********************************************************************/
:overlap
Return true if spline2 overlaps this by no more than fraction less
than the bounds of this.
: overlap Return true if spline2 overlaps this by no more than fraction less than the bounds of this .
bool QSPLINE::overlap( 
    QSPLINE *spline2,  
    double fraction    
) {
  int leftlimit = xcoords[1];             
  int rightlimit = xcoords[segments - 1]; 
  return !(spline2->segments < 3 ||
           spline2->xcoords[1] > leftlimit + fraction * (rightlimit - leftlimit) ||
           spline2->xcoords[spline2->segments - 1] <
               rightlimit - fraction * (rightlimit - leftlimit));
}
bool QSPLINE :: overlap ( QSPLINE * spline2 , double fraction ) { int leftlimit = xcoords [ 1 ] ; int rightlimit = xcoords [ segments - 1 ] ; return ! ( spline2 -> segments < 3 || spline2 -> xcoords [ 1 ] > leftlimit + fraction * ( rightlimit - leftlimit ) || spline2 -> xcoords [ spline2 -> segments - 1 ] < rightlimit - fraction * ( rightlimit - leftlimit ) ) ; }
QSPLINE::overlap
 Return true if spline2 overlaps this by no more than fraction less
 than the bounds of this.
QSPLINE :: overlap Return true if spline2 overlaps this by no more than fraction less than the bounds of this .
// test overlap // 2 cannot be smaller // by more than this /*common left limit */ /*common right limit */ /*or too non-overlap */