Method GetAutoSmoothKnot
GetAutoSmoothKnot(float3, float3, float3)
Gets a BezierKnot with its tangents and rotation calculated using the previous and next knot positions.
Declaration
public static BezierKnot GetAutoSmoothKnot(float3 position, float3 previous, float3 next)
Parameters
Type | Name | Description |
---|---|---|
float3 | position | The position of the knot. |
float3 | previous | The knot that immediately precedes the requested knot. |
float3 | next | The knot that immediately follows the requested knot. |
Returns
Type | Description |
---|---|
BezierKnot | A BezierKnot with tangent and rotation values calculated from the previous and next knot positions. |
GetAutoSmoothKnot(float3, float3, float3, float3)
Gets a BezierKnot with its tangents and rotation calculated using the previous and next knot positions.
Declaration
public static BezierKnot GetAutoSmoothKnot(float3 position, float3 previous, float3 next, float3 normal)
Parameters
Type | Name | Description |
---|---|---|
float3 | position | The position of the knot. |
float3 | previous | The knot that immediately precedes the requested knot. |
float3 | next | The knot that immediately follows the requested knot. |
float3 | normal | The normal vector of the knot. |
Returns
Type | Description |
---|---|
BezierKnot | A BezierKnot with tangent and rotation values calculated from the previous and next knot positions. |
GetAutoSmoothKnot(float3, float3, float3, float3, float)
Gets a BezierKnot with its tangents and rotation calculated using the previous and next knot positions.
Declaration
public static BezierKnot GetAutoSmoothKnot(float3 position, float3 previous, float3 next, float3 normal, float tension = 0.33333334)
Parameters
Type | Name | Description |
---|---|---|
float3 | position | The position of the knot. |
float3 | previous | The knot that immediately precedes the requested knot. |
float3 | next | The knot that immediately follows the requested knot. |
float3 | normal | The normal vector of the knot. |
float | tension | Set the length of the tangent vectors. |
Returns
Type | Description |
---|---|
BezierKnot | A BezierKnot with tangent and rotation values calculated from the previous and next knot positions. |