Home
last modified time | relevance | path

Searched refs:maxStep (Results 1 – 1 of 1) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DWindowSurface.java109 float adjDelta(float cur, float minStep, float maxStep) { in adjDelta() argument
113 if (cur > maxStep) cur = maxStep; in adjDelta()
114 if (cur < -maxStep) cur = -maxStep; in adjDelta()
118 void step(int width, int height, float minStep, float maxStep) { in step() argument
123 dx = adjDelta(-dx, minStep, maxStep); in step()
129 dy = adjDelta(-dy, minStep, maxStep); in step()