Lines Matching refs:currentValue
43 public int getValue(int currentValue, int targetValue) {
44 int delta = targetValue - currentValue;
47 // make sure change currentValue and not exceeding targetValue
52 retValue = currentValue + delta;
57 // make sure change currentValue and not exceeding targetValue
62 retValue = currentValue + delta;
72 public float getValue(float currentValue, float targetValue) {
73 float delta = targetValue - currentValue;
76 // make sure change currentValue and not exceeding targetValue
78 retValue = currentValue + delta;
83 // make sure change currentValue and not exceeding targetValue
85 retValue = currentValue + delta;