Interface ISpline
ISpline defines the interface from which Spline types inherit.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
public interface ISpline : IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable
Properties
Name | Description |
---|---|
Closed | Whether the spline is open (has a start and end point) or closed (forms an unbroken loop). |
Methods
Name | Description |
---|---|
GetCurve(int) | Get a BezierCurve from a knot index. |
GetCurveInterpolation(int, float) | Return the interpolation ratio (0 to 1) corresponding to a distance on a BezierCurve. Distance is relative to the curve. |
GetCurveLength(int) | Return the length of a curve. |
GetCurveUpVector(int, float) | Return the up vector for a t ratio on the curve. Contrary to EvaluateUpVector<T>(T, float), this method is trying to used cached values when possible for better performance when accessing to these values regularly. |
GetLength() | Return the sum of all curve lengths, accounting for Closed state. |