Method GetSubdivisionCount
GetSubdivisionCount(float, int)
Gets the number of subdivisions for a spline length and resolution.
Declaration
public static int GetSubdivisionCount(float length, int resolution)
Parameters
Type | Name | Description |
---|---|---|
float | length | The length of the spline to consider. |
int | resolution | The resolution to consider. Higher resolutions result in more precise representations. However, higher resolutions have higher performance requirements. |
Returns
Type | Description |
---|---|
int | The number of subdivisions as calculated for given length and resolution. |