MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / qwtIntervalWidthL

Function qwtIntervalWidthL

gui/src/osc_scale_engine.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <limits>
29
30static inline long double qwtIntervalWidthL(const QwtInterval &interval)
31{
32 if(!interval.isValid())
33 return 0.0;
34
35 return static_cast<long double>(interval.maxValue()) - static_cast<long double>(interval.minValue());
36}
37
38OscScaleEngine::OscScaleEngine()
39 : QwtLinearScaleEngine(10)

Callers 1

divideScaleMethod · 0.85

Calls 3

isValidMethod · 0.45
maxValueMethod · 0.45
minValueMethod · 0.45

Tested by

no test coverage detected