Method QuadraticToCubic
QuadraticToCubic(Vector2, Vector2, Vector2)
Converts a quadratic bezier to a cubic bezier
Declaration
public static BezierSegment QuadraticToCubic(Vector2 p0, Vector2 p1, Vector2 p2)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | p0 | The starting position of the quadratic segment |
Vector2 | p1 | The control position of the quadratic segment |
Vector2 | p2 | The ending position of the quadratic segment |
Returns
Type | Description |
---|---|
BezierSegment | The resulting BezierSegment |