MCPcopy Create free account
hub / github.com/LUX-Core/lux / expand

Method expand

src/qt/qcustomplot.cpp:1927–1933  ·  view source on GitHub ↗

! \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

Source from the content-addressed store, hash-verified

1925 \see expanded
1926*/
1927void QCPRange::expand(const QCPRange &otherRange)
1928{
1929 if (lower > otherRange.lower || qIsNaN(lower))
1930 lower = otherRange.lower;
1931 if (upper < otherRange.upper || qIsNaN(upper))
1932 upper = otherRange.upper;
1933}
1934
1935/*! \overload
1936

Callers 6

expandedMethod · 0.80
rescaleMethod · 0.80
rescaleKeyAxisMethod · 0.80
rescaleValueAxisMethod · 0.80
rescaleDataRangeMethod · 0.80
valueRangeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected