Method ConvertPathUnit
ConvertPathUnit<TSplineType>(TSplineType, PathIndexUnit)
Given a spline and a target PathIndex Unit, convert the SplineData to a new PathIndexUnit without changing the final positions on the Spline.
Declaration
public void ConvertPathUnit<TSplineType>(TSplineType spline, PathIndexUnit toUnit) where TSplineType : ISpline
Parameters
| Type | Name | Description |
|---|---|---|
| TSplineType | spline | The Spline to use for the conversion, this is necessary to compute most of PathIndexUnits. |
| PathIndexUnit | toUnit | The unit to convert SplineData to. |
Type Parameters
| Name | Description |
|---|---|
| TSplineType | The Spline type. |