Constructor Spline
Spline()
Default constructor creates a spline with no knots, not closed.
Declaration
public Spline()
Spline(int, bool)
Create a spline with a pre-allocated knot capacity.
Declaration
public Spline(int knotCapacity, bool closed = false)
Parameters
Type | Name | Description |
---|---|---|
int | knotCapacity | The capacity of the knot collection. |
bool | closed | Whether the spline is open (has a start and end point) or closed (forms an unbroken loop). |
Spline(IEnumerable<BezierKnot>, bool)
Create a spline from a collection of BezierKnot.
Declaration
public Spline(IEnumerable<BezierKnot> knots, bool closed = false)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<BezierKnot> | knots | A collection of BezierKnot. |
bool | closed | Whether the spline is open (has a start and end point) or closed (forms an unbroken loop). |
Spline(Spline)
Create a copy of a spline.
Declaration
public Spline(Spline spline)
Parameters
Type | Name | Description |
---|---|---|
Spline | spline | The spline to copy in that new instance. |