1
.TH "QwtScaleArithmetic" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
Arithmetic including a tolerance.
13
Definition at line 22 of file qwt_scale_engine.h.
14
.SS "Static Public Member Functions"
18
.RI "static int \fBcompareEps\fP (double value1, double value2, double intervalSize)"
21
.RI "static double \fBceilEps\fP (double value, double intervalSize)"
24
.RI "static double \fBfloorEps\fP (double value, double intervalSize)"
27
.RI "static double \fBdivideEps\fP (double interval, double steps)"
30
.RI "static double \fBceil125\fP (double x)"
33
.RI "static double \fBfloor125\fP (double x)"
36
.SH "Member Function Documentation"
38
.SS "int QwtScaleArithmetic::compareEps (double value1, double value2, double intervalSize)\fC [static]\fP"
40
Compare 2 values, relative to an interval.
42
Values are 'equal', when : $\cdot value2 - value1 <= abs(intervalSize * 10e^{-6})$
46
\fIvalue1\fP First value to compare
48
\fIvalue2\fP Second value to compare
50
\fIintervalSize\fP interval size
55
0: if equal, -1: if value2 > value1, 1: if value1 > value2
60
Definition at line 28 of file qwt_scale_engine.cpp.
62
Referenced by QwtScaleEngine::contains().
63
.SS "double QwtScaleArithmetic::ceilEps (double value, double intervalSize)\fC [static]\fP"
65
Ceil a value, relative to an interval
69
\fIvalue\fP Value to ceil
71
\fIintervalSize\fP Interval size
81
Definition at line 50 of file qwt_scale_engine.cpp.
83
Referenced by QwtLinearScaleEngine::align().
84
.SS "double QwtScaleArithmetic::floorEps (double value, double intervalSize)\fC [static]\fP"
86
Floor a value, relative to an interval
90
\fIvalue\fP Value to floor
92
\fIintervalSize\fP Interval size
102
Definition at line 67 of file qwt_scale_engine.cpp.
104
Referenced by QwtLinearScaleEngine::align().
105
.SS "double QwtScaleArithmetic::ceil125 (double x)\fC [static]\fP"
107
Find the smallest value out of {1,2,5}*10^n with an integer number n which is greater than or equal to x
116
Definition at line 98 of file qwt_scale_engine.cpp.
118
Referenced by QwtScaleEngine::divideInterval().
119
.SS "double QwtScaleArithmetic::floor125 (double x)\fC [static]\fP"
121
Find the largest value out of {1,2,5}*10^n with an integer number n which is smaller than or equal to x.
130
Definition at line 126 of file qwt_scale_engine.cpp.
134
Generated automatically by Doxygen for Qwt User's Guide from the source code.