! \overload Expands this range such that \a otherRange is contained in the new range. It is assumed that both this range and \a otherRange are normalized (see \ref normalize). If this range contains NaN as lower or upper bound, it will be replaced by the respective bound of \a otherRange. If \a otherRange is already inside the current range, this function does nothing. \see expande
| 1957 | \see expanded |
| 1958 | */ |
| 1959 | void QCPRange::expand(const QCPRange &otherRange) |
| 1960 | { |
| 1961 | if (lower > otherRange.lower || qIsNaN(lower)) |
| 1962 | lower = otherRange.lower; |
| 1963 | if (upper < otherRange.upper || qIsNaN(upper)) |
| 1964 | upper = otherRange.upper; |
| 1965 | } |
| 1966 | |
| 1967 | /*! \overload |
| 1968 |
no outgoing calls
no test coverage detected