Click or drag to resize
DigitalRunePath2FParameterizeByLength Method
Parameterizes the path by its length.

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public void ParameterizeByLength(
	int maxNumberOfIterations,
	float tolerance
)

Parameters

maxNumberOfIterations
Type: SystemInt32
The maximum number of iterations which are taken to compute the length.
tolerance
Type: SystemSingle
The tolerance value. This method will return an approximation of the precise length. The absolute error will be less than this tolerance.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiontolerance is negative or 0.
Remarks
Normally, the Parameter is not equal to the length of the curve from the first key up to the current key. This method will compute length of the segments and set the key Parameters to the distance from the first key. The parameter of the first key will be set to 0. The parameter of the second key will be set to the length of the first segment. The parameter of the third key will be set to the added length of the first two segments. And so on.
See Also