Method Split
Split(BezierCurve, float, out BezierCurve, out BezierCurve)
Decompose a curve into two smaller curves matching the source curve.
Declaration
public static void Split(BezierCurve curve, float t, out BezierCurve left, out BezierCurve right)
Parameters
Type | Name | Description |
---|---|---|
BezierCurve | curve | The source curve. |
float | t | A mid-point on the source curve defining where the two smaller curves control points meet. |
BezierCurve | left | A curve from the source curve first control point to the mid-point, matching the curvature of the source curve. |
BezierCurve | right | A curve from the mid-point to the source curve fourth control point, matching the curvature of the source curve. |