Show
Ignore:
Timestamp:
08/08/08 23:38:39 (5 months ago)
Author:
gyuque
Message:

added an interface

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/ashaardetect/trunk/cv/RectPool.as

    r17214 r17274  
    4242                } 
    4343 
     44                public function mapRect(f:Function):void 
     45                { 
     46                        for each(var rd:RectData in mPool) 
     47                        { 
     48                                if (rd.ttl >= 1) 
     49                                        f(rd.showPos, rd.alpha); 
     50                        } 
     51                } 
     52 
    4453                private static function filt_func(item:*, index:int, array:Array):Boolean 
    4554                { 
     
    7281                                rc2[3] += rc2[1]; 
    7382                                for (k = 0;k < 4;k++) 
    74                                         rc2[k] += (rc1[k] - rc2[k]) * 0.4; 
     83                                        rc2[k] += (rc1[k] - rc2[k]) * 0.7; 
    7584                                rc1[2] -= rc1[0]; 
    7685                                rc1[3] -= rc1[1];