Class SplinePath<T>
The SplinePath type is an implementation of ISpline that is composed of multiple sections of
other splines (see Spline
Implements
Inherited Members
Namespace: UnityEngine .Splines
Assembly: solution.dll
Syntax
public class SplinePath<T> : ISpline, IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable, IHasEmptyCurves where T : ISpline
Type Parameters
Name | Description |
---|---|
T | The type of spline to create a path with. |
Constructors
Name | Description |
---|---|
Spline |
Create a new Spline |
Properties
Name | Description |
---|---|
Closed | Spline |
Count | Returns the number of knots.
Note that there are duplicate knots where two ISpline meet.
In addition, each closed ISpline have their first knot duplicated.
Use Get |
Empty |
A collection of knot indices that should be considered degenerate curves for the purpose of creating a non-interpolated gap between curves. |
this[int] | Gets the knot at |
this[Spline |
Gets the knot at |
Slices | The ISpline splines that make up this path. |
Methods
Name | Description |
---|---|
Get |
Gets a Bezier |
Get |
Returns the interpolation ratio (0 to 1) that corresponds to a distance on a Bezier |
Get |
Returns the length of a curve. This function returns 0 length for knot indices where ISpline segments overlap. |
Get |
Return the up vector for a t ratio on the curve. |
Get |
Gets an enumerator that iterates through the Bezier |
Get |
Return the sum of all curve lengths, accounting for Closed state. |