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 |
---|---|
Data |
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 Path |
Value | A value to store with this Data Point. |
Methods
Name | Description |
---|---|
Compare |
Compare DataPoint Index values. |
Compare |
Compare DataPoint Index values. |
To |
A summary of the DataPoint time and value. |