Struct DataPoint<TDataType>
A pair containing an interpolation ratio and {TDataType} value.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
[Serializable]
public struct DataPoint<TDataType> : IComparable<DataPoint<TDataType>>, IComparable<float>, IDataPoint
Type Parameters
Name | Description |
---|---|
TDataType | The type of data this data point stores. |
Constructors
Name | Description |
---|---|
DataPoint(float, TDataType) | Create a new Data Point with interpolation ratio and value. |
Properties
Name | Description |
---|---|
Index | The interpolation ratio relative to a spline. How this value is interpolated depends on the PathIndexUnit specified by SplineData<T>. |
Value | A value to store with this Data Point. |
Methods
Name | Description |
---|---|
CompareTo(float) | Compare DataPoint Index values. |
CompareTo(DataPoint<TDataType>) | Compare DataPoint Index values. |
ToString() | A summary of the DataPoint time and value. |