Method SlerpWithReferenceUp
SlerpWithReferenceUp(Vector3, Vector3, float, Vector3)
This is a slerp that mimics a camera operator's movement in that it chooses a path that avoids the lower hemisphere, as defined by the up param
Declaration
public static Vector3 SlerpWithReferenceUp(Vector3 vA, Vector3 vB, float t, Vector3 up)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | vA | First direction |
| Vector3 | vB | Second direction |
| float | t | Interpolation amoun t |
| Vector3 | up | Defines the up direction |
Returns
| Type | Description |
|---|---|
| Vector3 |