Struct SplineSlice<T>
SplineSlice represents a partial or complete range of curves from another Spline.
A Spline
Implements
Inherited Members
Namespace: UnityEngine .Splines
Assembly: solution.dll
Syntax
public struct SplineSlice<T> : ISpline, IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable where T : ISpline
Type Parameters
Name | Description |
---|---|
T | The type of spline that this slice represents. |
Remarks
Iterating a Spline
Constructors
Name | Description |
---|---|
Spline |
Constructor for a new SplineSlice. |
Spline |
Constructor for a new SplineSlice. |
Fields
Name | Description |
---|---|
Range | An inclusive start index, number of indices, and direction to iterate. |
Spline | The Spline that this Slice will read Bezier |
Transform | A transform matrix to be applied to the spline knots and tangents. |
Properties
Name | Description |
---|---|
Closed | Whether the spline is open (has a start and end point) or closed (forms an unbroken loop). |
Count | Return the number of knots in this branch. This function clamps the Range to the Count of the the referenced Spline. |
this[int] | Get a Bezier |
Methods
Name | Description |
---|---|
Get |
Get a Bezier |
Get |
Return the normalized interpolation (t) corresponding to a distance on a Bezier |
Get |
Return the length of a curve. |
Get |
Return the up vector for a t ratio on the curve. |
Get |
Get an enumerator that iterates through the Bezier |
Get |
Return the sum of all curve lengths. |