MCPcopy Create free account
hub / github.com/LUX-Core/lux / intersection

Method intersection

src/qt/qcustomplot.cpp:2282–2289  ·  view source on GitHub ↗

! Returns the data range which is contained in both this data range and \a other. This method is very similar to \ref bounded, with one distinction: If this range and the \a other range share no intersection, the returned data range will be empty with begin and end set to 0. (\ref bounded would return a range with begin and end set to one of the boundaries of \a other, depending on wh

Source from the content-addressed store, hash-verified

2280 \see QCPDataSelection::intersection
2281*/
2282QCPDataRange QCPDataRange::intersection(const QCPDataRange &other) const
2283{
2284 QCPDataRange result(qMax(mBegin, other.mBegin), qMin(mEnd, other.mEnd));
2285 if (result.isValid())
2286 return result;
2287 else
2288 return QCPDataRange();
2289}
2290
2291/*!
2292 Returns whether this data range and \a other share common data points.

Callers 1

qt_translations.pyFile · 0.80

Calls 6

addDataRangeMethod · 0.80
simplifyMethod · 0.80
isValidMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
dataRangeMethod · 0.45

Tested by

no test coverage detected