mix

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

Performs a linear interpolation between this Vector4 and another Vector4 o by a given mixing factor mix.

Return

A new Vector4 representing the result of the interpolation.

Parameters

o

The target Vector4 to interpolate to.

mix

The mixing factor, where 0.0 corresponds to this Vector4, and 1.0 corresponds to the target Vector4 o.