Method GetAutoSmoothTangent
GetAutoSmoothTangent(float3, float3, float)
Calculates a tangent from the previous and next knot positions.
Declaration
public static float3 GetAutoSmoothTangent(float3 previous, float3 next, float tension = 0.33333334)
Parameters
Type | Name | Description |
---|---|---|
float3 | previous | The position of the previous BezierKnot. |
float3 | next | The position of the next BezierKnot. |
float | tension | Set the length of the tangent vectors. |
Returns
Type | Description |
---|---|
float3 | Returns a tangent calculated from the previous and next knot positions. |
GetAutoSmoothTangent(float3, float3, float3, float)
Gets a tangent from the previous, current, and next knot positions.
Declaration
public static float3 GetAutoSmoothTangent(float3 previous, float3 current, float3 next, float tension = 0.33333334)
Parameters
Type | Name | Description |
---|---|---|
float3 | previous | The position of the previous BezierKnot. |
float3 | current | The position of the current BezierKnot. |
float3 | next | The position of the next BezierKnot. |
float | tension | The length of the tangent vectors. |
Returns
Type | Description |
---|---|
float3 | Returns a tangent calculated from the previous, current, and next knot positions. |