Struct SplineKnotIndex
Provides a tuple to define a couple (Spline index, Knot index) that identifies a particular knot on a spline. This tuple is used by KnotLinkCollection to maintain links between knots.
Implements
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
[Serializable]
public struct SplineKnotIndex : IEquatable<SplineKnotIndex>
Constructors
Name | Description |
---|---|
SplineKnotIndex(int, int) | Creates a new SplineKnotIndex to reference a knot. |
Fields
Name | Description |
---|---|
Invalid | Represents the default value for an invalid index. |
Knot | The index of the knot in the spline. |
Spline | The index of the spline in the Splines. |
Methods
Name | Description |
---|---|
Equals(object) | Checks if two indices are equal. |
Equals(SplineKnotIndex) | Checks if two indices are equal. |
GetHashCode() | Gets a hash code for this SplineKnotIndex. |
IsValid() | Checks if an index is greater than or equal to 0. |
ToString() | Gets a string representation of a SplineKnotIndex. |
Operators
Name | Description |
---|---|
operator ==(SplineKnotIndex, SplineKnotIndex) | Checks if two indices are equal. |
operator !=(SplineKnotIndex, SplineKnotIndex) | Checks if two indices are not equal. |