Contents

SushiEngine

lerp

template <typename T>
Vector3T< T > lerp(const Vector3T< T > &a, const Vector3T< T > &b, T t) noexcept

Parameters

NameTypeDescription
aconst Vector3T< T > &

Value at t == 0.

bconst Vector3T< T > &

Value at t == 1.

tT

Interpolation parameter, normally in [0, 1] (not clamped).

Returns

Vector3T< T >

a + (b - a) * t.

Description

Componentwise linear interpolation of two vectors.