Constructor BezierCurve
BezierCurve(float3, float3)
Construct a cubic Bezier curve from a linear curve. A linear curve is a straight line.
Declaration
public BezierCurve(float3 p0, float3 p1)
Parameters
Type | Name | Description |
---|---|---|
float3 | p0 | The first control point. This is the start point of the curve. |
float3 | p1 | The second control point. This is the end point of the curve. |
BezierCurve(float3, float3, float3)
Construct a cubic Bezier curve by elevating a quadratic curve.
Declaration
public BezierCurve(float3 p0, float3 p1, float3 p2)
Parameters
Type | Name | Description |
---|---|---|
float3 | p0 | The first control point. This is the start point of the curve. |
float3 | p1 | The second control point. |
float3 | p2 | The third control point. This is the end point of the curve. |
BezierCurve(float3, float3, float3, float3)
Construct a cubic Bezier curve from a series of control points.
Declaration
public BezierCurve(float3 p0, float3 p1, float3 p2, float3 p3)
Parameters
Type | Name | Description |
---|---|---|
float3 | p0 | The first control point. This is the start point of the curve. |
float3 | p1 | The second control point. |
float3 | p2 | The third control point. |
float3 | p3 | The fourth control point. This is the end point of the curve. |
BezierCurve(BezierKnot, BezierKnot)
Construct a cubic Bezier curve from a start and end Bezier
Declaration
public BezierCurve(BezierKnot a, BezierKnot b)
Parameters
Type | Name | Description |
---|---|---|
Bezier |
a | The knot to use as the first and second control points. The first control point is equal
to Position, and the second control point is equal to
(Position + Tangent |
Bezier |
b | The knot to use as the third and fourth control points. The third control point is equal
to (Position + Tangent |