mix

fun mix(o: Vector2, mix: Double): Vector2(source)

Interpolates between the current vector and the given vector o by the specified mixing factor.

Return

A new vector that is the result of the interpolation.

Parameters

o

The target vector to interpolate towards.

mix

A mixing factor between 0 and 1 where 0 results in the current vector and 1 results in the vector o.