lerp

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

Linear interpolation (lerp) toward another twist.

Interpolates both linear and angular displacement.

Return

the interpolated twist

Parameters

other

the target twist to interpolate toward

t

the interpolation parameter in range 0, 1