Searched refs:lastVisibleWidth (Results 1 – 1 of 1) sorted by relevance
1915 public float getMaxMovementBasedOnPosition(int lastVisibleWidth, int maxWidth) { in getMaxMovementBasedOnPosition() argument1922 if (lastVisibleWidth < (maxWidth - slowZone)) { in getMaxMovementBasedOnPosition()1923 position = VELOCITY_THRESHOLD * timeElapsed + lastVisibleWidth; in getMaxMovementBasedOnPosition()1925 float percentageIntoSlowZone = (lastVisibleWidth - (maxWidth - slowZone)) / slowZone; in getMaxMovementBasedOnPosition()1927 position = velocity * timeElapsed + lastVisibleWidth; in getMaxMovementBasedOnPosition()