! Returns whether this data range and \a other share common data points. \see intersection, contains */
| 2299 | \see intersection, contains |
| 2300 | */ |
| 2301 | bool 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. |
no outgoing calls
no test coverage detected