mix

fun mix(vector: Vec2, weight: Double): Vec2

Mixes (interpolates) a specified vector with this vector, modifying this vector.

Return

this vector modified to the mix of itself and the specified vector

Parameters

vector

The vector to mix with this one

weight

The relative weight of this vector, typically in the range 0,1