Method ApproximateLength
ApproximateLength(BezierCurve)
Calculate the approximate length of a BezierCurve. This is less accurate than CalculateLength(BezierCurve, int), but can be significantly faster. Use this when accuracy is not paramount and the curve control points are changing frequently.
Declaration
public static float ApproximateLength(BezierCurve curve)
Parameters
Type | Name | Description |
---|---|---|
BezierCurve | curve | The BezierCurve to calculate length. |
Returns
Type | Description |
---|---|
float | An estimate of the length of a curve. |