QwtScaleArithmetic(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

🌸 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 ceil
  • intervalSize β€” 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 compare
  • value2 β€” Second value to compare
  • intervalSize β€” 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 size
  • numSteps β€” 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 floor
  • intervalSize β€” 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