Method EvaluateUpVector
EvaluateUpVector(float)
Evaluates the up vector of a point, t, on a spline in world space.
Declaration
public float3 EvaluateUpVector(float t)
Parameters
| Type | Name | Description |
|---|---|---|
| float | t | A value between 0 and 1 representing a percentage of entire spline. |
Returns
| Type | Description |
|---|---|
| float3 | The computed up direction. |
EvaluateUpVector(int, float)
Evaluates the up vector of a point, t, on a spline at an index, splineIndex, in world space.
Declaration
public float3 EvaluateUpVector(int splineIndex, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| int | splineIndex | The index of the Spline to evaluate. |
| float | t | A value between 0 and 1 representing a percentage of entire spline. |
Returns
| Type | Description |
|---|---|
| float3 | The computed up direction. |
EvaluateUpVector<T>(T, float)
Evaluates the up vector of a point, t, on a given spline, in world space.
Declaration
public float3 EvaluateUpVector<T>(T spline, float t) where T : ISpline
Parameters
| Type | Name | Description |
|---|---|---|
| T | spline | The Spline to evaluate. |
| float | t | A value between 0 and 1 representing a percentage of entire spline. |
Returns
| Type | Description |
|---|---|
| float3 | The computed up direction. |
Type Parameters
| Name | Description |
|---|---|
| T | The spline type. |