! Returns whether this data range and \a other share common data points. \see intersection, contains */
| 2294 | \see intersection, contains |
| 2295 | */ |
| 2296 | bool QCPDataRange::intersects(const QCPDataRange &other) const |
| 2297 | { |
| 2298 | return !( (mBegin > other.mBegin && mBegin >= other.mEnd) || |
| 2299 | (mEnd <= other.mBegin && mEnd < other.mEnd) ); |
| 2300 | } |
| 2301 | |
| 2302 | /*! |
| 2303 | Returns whether all data points described by this data range are also in \a other. |
no outgoing calls
no test coverage detected