MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / validRange

Method validRange

qcustomplot/qcustomplot.cpp:2101–2109  ·  view source on GitHub ↗

! Checks, whether the specified range is within valid bounds, which are defined as QCPRange::maxRange and QCPRange::minRange. A valid range means: \li range bounds within -maxRange and maxRange \li range size above minRange \li range size below maxRange */

Source from the content-addressed store, hash-verified

2099 \li range size below maxRange
2100*/
2101bool QCPRange::validRange(double lower, double upper)
2102{
2103 return (lower > -maxRange &&
2104 upper < maxRange &&
2105 qAbs(lower-upper) > minRange &&
2106 qAbs(lower-upper) < maxRange &&
2107 !(lower > 0 && qIsInf(upper/lower)) &&
2108 !(upper < 0 && qIsInf(lower/upper)));
2109}
2110
2111/*!
2112 \overload

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected