Method CalculateUpVector
CalculateUpVector<T>(T, float)
Calculate the normal (up) vector of a spline. This is a more accurate but more expensive operation than EvaluateUpVector<T>(T, float).
Declaration
public static float3 CalculateUpVector<T>(this T spline, float t) where T : ISpline
Parameters
| Type | Name | Description |
|---|---|---|
| T | spline | The NativeSpline to evaluate. |
| float | t | A value between 0 and 1 representing a ratio of the curve. |
Returns
| Type | Description |
|---|---|
| float3 | An up vector |
Type Parameters
| Name | Description |
|---|---|
| T | A type implementing ISpline. |