@ -166,9 +166,9 @@ final public class FastMath {
* @return an extrapolation for the given parameters
* @return an extrapolation for the given parameters
* /
* /
public static float extrapolateLinear ( float scale , float startValue , float endValue ) {
public static float extrapolateLinear ( float scale , float startValue , float endValue ) {
if ( scale < = 0f ) {
// if (scale <= 0f) {
return startValue ;
// return startValue;
}
// }
return ( ( 1f - scale ) * startValue ) + ( scale * endValue ) ;
return ( ( 1f - scale ) * startValue ) + ( scale * endValue ) ;
}
}
@ -187,9 +187,9 @@ final public class FastMath {
if ( store = = null ) {
if ( store = = null ) {
store = new Vector3f ( ) ;
store = new Vector3f ( ) ;
}
}
if ( scale < = 1f ) {
// if (scale <= 1f) {
return interpolateLinear ( scale , startValue , endValue , store ) ;
// return interpolateLinear(scale, startValue, endValue, store);
}
// }
store . x = extrapolateLinear ( scale , startValue . x , endValue . x ) ;
store . x = extrapolateLinear ( scale , startValue . x , endValue . x ) ;
store . y = extrapolateLinear ( scale , startValue . y , endValue . y ) ;
store . y = extrapolateLinear ( scale , startValue . y , endValue . y ) ;
store . z = extrapolateLinear ( scale , startValue . z , endValue . z ) ;
store . z = extrapolateLinear ( scale , startValue . z , endValue . z ) ;