public static float screenToScroll(float x,float warpSize){
  if (x <= 0)   return 0;
  if (x >= warpSize)   return x + warpSize;
  return (float)Math.sqrt(x * warpSize) * 2;
}

public static float screenToScroll ( float x , float warpSize ) { if ( x <= 0 ) return 0 ; if ( x >= warpSize ) return x + warpSize ; return ( float ) Math . sqrt ( x * warpSize ) * 2 ; }
unwarps x so it matches the above warp function .
