point2line
index
 
Name lerp ( )
Description Returns the linear interpolation between two vectors. In some vector classes this is referred to as blend().
Syntax
lerp(begin, end, interpolator);
Parameters
begin   the vector when interpolator is 0 (Vect2)
end   the vector when interpolator is 1 (Vect2)
interpolator   to lerp between the two vectors (float)
Returns interpolated vector (Vect2)
Usage Web & Application
Related
Examples
import point2line.*;

Vect2 position1 = new Vect2( 0, 0 );
Vect2 position2 = new Vect2( 100, 100 );

Vect2 halfway = Vect2.lerp( position1, position2, 0.5 );

println( halfway ); // prints "Vect2( 50.0, 50.0 )"