SlerpUnclamped
Spherically interpolates between two vectors.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SlerpUnclamped(Vector3, Vector3, float)
Spherically interpolates between two vectors.
public static Vector3 SlerpUnclamped(Vector3 a, Vector3 b, float t)
Parameters
Returns
Type | Description |
|---|---|
| Vector3 | The spherically interpolated vector between |
Remarks
Interpolates between and by amount . The difference between this and linear interpolation (aka, "lerp") is that the vectors are treated as directions rather than points in space. The direction of the returned vector is interpolated by the angle and its Vector3.magnitude is interpolated between the magnitudes of and .
abtabNote: This static method can slerp beyond the and vectors. This means can be less than zero or greater than one.
abtAdditional Resources: Vector3.Slerp.
SlerpUnclamped(Vector3, Vector3, float)
Spherically interpolates between two vectors.
public static Vector3 SlerpUnclamped(in Vector3 a, in Vector3 b, float t)
Parameters
Returns
Type | Description |
|---|---|
| Vector3 | The spherically interpolated vector between |
Remarks
Interpolates between and by amount . The difference between this and linear interpolation (aka, "lerp") is that the vectors are treated as directions rather than points in space. The direction of the returned vector is interpolated by the angle and its Vector3.magnitude is interpolated between the magnitudes of and .
abtabNote: This static method can slerp beyond the and vectors. This means can be less than zero or greater than one.
abtAdditional Resources: Vector3.Slerp.