Method AddDataPointWithDefaultValue
AddDataPointWithDefaultValue(float, bool)
Append a DataPoint<TDataType> with default value to this collection.
Declaration
public int AddDataPointWithDefaultValue(float t, bool useDefaultValue = false)
Parameters
| Type | Name | Description |
|---|---|---|
| float | t | The interpolant relative to Spline. How this value is interpreted is dependent on PathIndexUnit.get. |
| bool | useDefaultValue | If true will use m_DefaultValue to set the value, otherwise will interpolate the value regarding the closest DataPoints. |
Returns
| Type | Description |
|---|---|
| int | The index of the inserted dataPoint. |