QwtScaleArithmetic(3)

Hey bestie πŸ’– this is QwtScaleArithmetic(3), straight outta the Library Functions Manual, and it’s here to make tolerance arithmetic make sense. No cap.

🌸 NAME 🌸

QwtScaleArithmetic - Arithmetic including a tolerance. Periodt. ✨

πŸŽ€ SYNOPSIS πŸŽ€

#include <qwt_scale_engine.h>

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static double ceilEps (double value, double intervalSize) β€” static public member function vibes.
  • static double floorEps (double value, double intervalSize) β€” static public member function vibes.
  • static double divideEps (double intervalSize, double numSteps) β€” Divide an interval into steps.
  • static double divideInterval (double intervalSize, int numSteps, uint base) β€” static public member function vibes.

πŸ’œ Detailed Description πŸ’œ

Arithmetic including a tolerance. That’s the whole concept, and honestly? Iconic. πŸ’…

Definition at line 22 of file qwt_scale_engine.h.

πŸ’– Member Function Documentation πŸ’–

🌟 double QwtScaleArithmetic::ceilEps (double value, double intervalSize) 🌟

[static]

Ceil a value, relative to an interval.

Parameters:

  • value β€” Value to be ceiled
  • intervalSize β€” Interval size

Returns: Rounded value

See also: floorEps()

Definition at line 108 of file qwt_scale_engine.cpp.


🌟 double QwtScaleArithmetic::divideEps (double intervalSize, double numSteps) 🌟

[static]

Divide an interval into steps. The formula is literally:

$stepSize = (intervalSize - intervalSize
       * 10e^{-6}) / numSteps$

Parameters:

  • intervalSize β€” Interval size
  • numSteps β€” Number of steps

Returns: Step size

Definition at line 143 of file qwt_scale_engine.cpp.


🌟 double QwtScaleArithmetic::divideInterval (double intervalSize, int numSteps, uint base) 🌟

[static]

Calculate a step size for a given interval.

Parameters:

  • intervalSize β€” Interval size
  • numSteps β€” Number of steps
  • base β€” Base for the division ( usually 10 )

Returns: Calculated step size

Definition at line 160 of file qwt_scale_engine.cpp.


🌟 double QwtScaleArithmetic::floorEps (double value, double intervalSize) 🌟

[static]

Floor a value, relative to an interval.

Parameters:

  • value β€” Value to be floored
  • intervalSize β€” Interval size

Returns: Rounded value

See also: floorEps() β€” yes, same name, preserved exactly πŸ’€

Definition at line 126 of file qwt_scale_engine.cpp.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code.


That’s the whole page, bestie 🫢. Source/version energy is Qwt User’s Guide, manual page ID is QwtScaleArithmetic(3), and the footer has no date β€” so no fake date here. Slay and bye πŸ’…βœ¨

πŸ“¦ where this page comes from