Contents

SushiEngine::placeholder

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.

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

Parameters

NameTypeDescription
aT

Value at t == 0.

bT

Value at t == 1.

tT

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

Returns

T

a + (b - a) * t.

Description

Scalar linear interpolation.