lerp

fun lerp(other: Vec3, t: Double): Vec3(source)

Performs linear interpolation between this vector and another vector.

Return

The interpolated vector.

Parameters

other

The target vector for interpolation.

t

The interpolation parameter (0.0 returns this vector, 1.0 returns other vector).