|
Krita Source Code Documentation
|
#include <KisSpinBoxSplineUnitConverter.h>
Public Member Functions | |
| double | io2sp (int x, int min, int max) |
| int | sp2io (double x, int min, int max) |
KisSpinBoxSplineUnitConverter is a class that converts points from ranges(0, 1) to ranges (min, max). In case of reverted ranges (min > max), smaller values from range (0, 1) correspond to bigger values from range (min, max) and the other way around. Example: 3 from (0, 10) is 0.3 from (0, 1) 3 from (10, 0) is 0.7 from (0, 1)
Definition at line 25 of file KisSpinBoxSplineUnitConverter.h.
| double KisSpinBoxSplineUnitConverter::io2sp | ( | int | x, |
| int | min, | ||
| int | max ) |
Definition at line 13 of file KisSpinBoxSplineUnitConverter.cpp.
| int KisSpinBoxSplineUnitConverter::sp2io | ( | double | x, |
| int | min, | ||
| int | max ) |
Definition at line 22 of file KisSpinBoxSplineUnitConverter.cpp.