lerp
template <typename T>
Vector3T< T > lerp(const Vector3T< T > &a, const Vector3T< T > &b, T t) noexceptParameters
| Name | Type | Description |
|---|---|---|
a | const Vector3T< T > & | Value at |
b | const Vector3T< T > & | Value at |
t | T | 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) noexceptParameters
| Name | Type | Description |
|---|---|---|
a | T | Value at |
b | T | Value at |
t | T | Interpolation parameter, normally in [0, 1] (not clamped). |
Returns
T
a + (b - a) * t.
Description
Scalar linear interpolation.

