Lerp(Vector4, Vector4, float)
Linearly interpolates between two vectors.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static Vector4 Lerp(Vector4 a, Vector4 b, float t)
Parameters
Returns
Type | Description |
|---|---|
| Vector4 | When |
Remarks
Interpolates between and by amount .
abtThe parameter t is clamped between [0...1].
When t = 0 returns a.
When t = 1 returns b.
When t = 0.5 returns the midpoint of a and b.
Additional Resources: Vector4.LerpUnclamped.