! Returns whether this data range and \a other share common data points. \see intersection, contains */
| 2326 | \see intersection, contains |
| 2327 | */ |
| 2328 | bool QCPDataRange::intersects(const QCPDataRange &other) const |
| 2329 | { |
| 2330 | return !( (mBegin > other.mBegin && mBegin >= other.mEnd) || |
| 2331 | (mEnd <= other.mBegin && mEnd < other.mEnd) ); |
| 2332 | } |
| 2333 | |
| 2334 | /*! |
| 2335 | Returns whether all data points of \a other are also contained inside this data range. |
no outgoing calls
no test coverage detected