Home | History | Annotate | Download | only in graphics

Lines Matching refs:cur

109         float adjDelta(float cur, float minStep, float maxStep) {
110 cur += (Math.random()*minStep) - (minStep/2);
111 if (cur < 0 && cur > -minStep) cur = -minStep;
112 if (cur >= 0 && cur < minStep) cur = minStep;
113 if (cur > maxStep) cur = maxStep;
114 if (cur < -maxStep) cur = -maxStep;
115 return cur;