public static double curveValue ( double value , double dest , double speed ) { Check . different ( speed , 0.0 ) ; final double reciprocal = 1.0 / speed ; final double invReciprocal = 1.0 - reciprocal ; return value * invReciprocal + dest * reciprocal ; }
Apply progressive modifications to a value .