MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / intersects

Method intersects

qcustomplot/qcustomplot.cpp:2301–2305  ·  view source on GitHub ↗

! Returns whether this data range and \a other share common data points. \see intersection, contains */

Source from the content-addressed store, hash-verified

2299 \see intersection, contains
2300*/
2301bool QCPDataRange::intersects(const QCPDataRange &other) const
2302{
2303 return !( (mBegin > other.mBegin && mBegin >= other.mEnd) ||
2304 (mEnd <= other.mBegin && mEnd < other.mEnd) );
2305}
2306
2307/*!
2308 Returns whether all data points of \a other are also contained inside this data range.

Callers 3

selectTestRectMethod · 0.80
drawMethod · 0.80
selectTestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected