Method EvaluateTangent
EvaluateTangent(float)
Evaluates the tangent vector of a point, t, on a spline in world space.
Declaration
public float3 EvaluateTangent(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 tangent vector. |
EvaluateTangent(int, float)
Evaluates the tangent vector of a point, t, on a spline at an index, splineIndex, in world space.
Declaration
public float3 EvaluateTangent(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 tangent vector. |
EvaluateTangent<T>(T, float)
Evaluates the tangent vector of a point, t, on a given spline, in world space.
Declaration
public float3 EvaluateTangent<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 tangent vector. |
Type Parameters
| Name | Description |
|---|---|
| T | The spline type. |