QwtScaleArithmetic(3)
πΈ NAME πΈ
QwtScaleArithmetic β bestie, that's the whole name, the original page didn't give it a one-liner so we're not inventing one π
β¨ SYNOPSIS β¨
#include <qwt_scale_engine.h>
π Static Public Member Functions
static double ceil125 (double x)static double ceilEps (double value, double intervalSize)static int compareEps (double value1, double value2, double intervalSize)static double divideEps (double interval, double steps)static double floor125 (double x)static double floorEps (double value, double intervalSize)
π¦ Detailed Description π¦
Arithmetic including a tolerance. That's it, that's the vibe β it does math, but it's polite about tiny float messiness π«Ά
π₯ Member Function Documentation π₯
β double QwtScaleArithmetic::ceil125 (doublex) [static]
Find the smallest value out of {1,2,5}*10^n with an integer number n which is greater than or equal to x. It's giving "round up, but only to the pretty numbers" β¨
Parameters:
xβ Input value
π double QwtScaleArithmetic::ceilEps (doublevalue, doubleintervalSize) [static]
Ceil a value, relative to an interval. Same energy as ceil125 but it's interval-aware, no cap π
Parameters:
valueβ Value to ceilintervalSizeβ Interval size
See also: floorEps()
π int QwtScaleArithmetic::compareEps (doublevalue1, doublevalue2, doubleintervalSize) [static]
Compare 2 values, relative to an interval. Values are 'equal', when : $
Parameters:
value1β First value to comparevalue2β Second value to compareintervalSizeβ interval size
Returns: 0: if equal, -1: if value2 > value1, 1: if value1 > value2
π double QwtScaleArithmetic::divideEps (doubleintervalSize, doublenumSteps) [static]
Divide an interval into steps. $stepSize = (intervalSize - intervalSize * 10e^{-6}) / numSteps$
Parameters:
intervalSizeβ Interval sizenumStepsβ Number of steps
Returns: Step size
π§ double QwtScaleArithmetic::floor125 (doublex) [static]
Find the largest value out of {1,2,5}*10^n with an integer number n which is smaller than or equal to x.
Parameters:
xβ Input value
π double QwtScaleArithmetic::floorEps (doublevalue, doubleintervalSize) [static]
Floor a value, relative to an interval. The mirror-selfie counterpart to ceilEps, lowkey iconic π
Parameters:
valueβ Value to floorintervalSizeβ Interval size
See also: floorEps()
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human author, just a robot doing its little thing π€π
Ok that's the whole page, you ate it up, periodt. This was QwtScaleArithmetic(3) from the Qwt User's Guide, Version 5.2.3, dated Tue Nov 20 2012 β go forth and scale slay π β¨π¦
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms