question: public static float computeDiscardScale ( float amount , float range , boolean fromClick ) { if ( Math . abs ( amount ) < 1.0f ) return 1.0f ; float t = amount / range ; float endScale = fromClick ? DISCARD_END_SCALE_CLICK : DISCARD_END_SCALE_SWIPE ; return MathUtils . interpolate ( 1.0f , endScale , Math . abs ( t ) ) ; }
target:  Computes the scale of the tab based on its discard status.