lerp

inline fun lerp(a: Vector2F, b: Vector2F, t: Float): Vector2F

Returns a linearly interpolated vector between a and b vectors.

Parameters

a

the source vector.

b

the destination vector.

t

the interpolator value with an expected range of [0, 1].


Returns a component-wise linearly interpolated vector between a and b vectors.

Parameters

a

the source vector.

b

the destination vector.

t

the interpolator vector with expected ranges of ([0, 1], [0, 1]).