Method Add
Add(float, T)
Append a DataPoint<TDataType> to this collection.
Declaration
public void Add(float t, T data)
Parameters
Type | Name | Description |
---|---|---|
float | t | The interpolant relative to Spline. How this value is interpreted is dependent on PathIndexUnit.get. |
T | data | The data to store in the created data point. |
Add(DataPoint<T>)
Append a DataPoint<TDataType> to this collection.
Declaration
public int Add(DataPoint<T> dataPoint)
Parameters
Type | Name | Description |
---|---|---|
DataPoint<T> | dataPoint | The data point to append to the SplineData collection. |
Returns
Type | Description |
---|---|
int | The index of the inserted dataPoint. |