Method FromTangent
FromTangent(float3, float3, float3, float3)
Create a BezierCurve from a start and end point plus tangent directions.
Declaration
public static BezierCurve FromTangent(float3 pointA, float3 tangentOutA, float3 pointB, float3 tangentInB)
Parameters
Type | Name | Description |
---|---|---|
float3 | pointA | Starting position of the curve. |
float3 | tangentOutA | The direction and magnitude to the second control point. |
float3 | pointB | Ending position of the curve. |
float3 | tangentInB | The direction and magnitude to the third control point. |
Returns
Type | Description |
---|---|
BezierCurve | A new BezierCurve from the derived control points. |