LerpUnclamped
Linearly interpolates between vectors a and b by t.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
LerpUnclamped(Vector2, Vector2, float)
Linearly interpolates between vectors and by .
abtpublic static Vector2 LerpUnclamped(Vector2 a, Vector2 b, float t)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 | When |
Remarks
When = 0 returns .
taWhen = 1 return .
tbWhen = 0.5 returns the midpoint of and .
tabAdditional Resources: Vector2.Lerp.
LerpUnclamped(Vector2, Vector2, float)
Linearly interpolates between vectors and by .
abtpublic static Vector2 LerpUnclamped(in Vector2 a, in Vector2 b, float t)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 | When |
Remarks
When = 0 returns .
taWhen = 1 return .
tbWhen = 0.5 returns the midpoint of and .
tabAdditional Resources: Vector2.Lerp.