Arithmetic including a tolerance.
More...
#include <qwt_scale_engine.h>
|
static double | ceilEps (double value, double intervalSize) |
|
static double | divideEps (double interval, double steps) |
| Divide an interval into steps. More...
|
|
static double | divideInterval (double interval, int numSteps, uint base) |
|
static double | floorEps (double value, double intervalSize) |
|
Arithmetic including a tolerance.
Definition at line 22 of file qwt_scale_engine.h.
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 113 of file qwt_scale_engine.cpp.
double QwtScaleArithmetic::divideEps |
( |
double |
intervalSize, |
|
|
double |
numSteps |
|
) |
| |
|
static |
Divide an interval into steps.
- Parameters
-
intervalSize | Interval size |
numSteps | Number of steps |
- Returns
- Step size
Definition at line 148 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 165 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()
Definition at line 131 of file qwt_scale_engine.cpp.
The documentation for this class was generated from the following files: