 | LineSegment3F.GetLength Method |
Computes the approximated length of the curve for the parameter interval
[start, end].
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntaxpublic float GetLength(
float start,
float end,
int maxNumberOfIterations,
float tolerance
)
Public Function GetLength (
start As Single,
end As Single,
maxNumberOfIterations As Integer,
tolerance As Single
) As Single
public:
virtual float GetLength(
float start,
float end,
int maxNumberOfIterations,
float tolerance
) sealed
abstract GetLength :
start : float32 *
end : float32 *
maxNumberOfIterations : int *
tolerance : float32 -> float32
override GetLength :
start : float32 *
end : float32 *
maxNumberOfIterations : int *
tolerance : float32 -> float32
Parameters
- start
- Type: System.Single
The parameter value of the start position. - end
- Type: System.Single
The parameter value of the end position. - maxNumberOfIterations
- Type: System.Int32
The maximum number of iterations which are taken to compute the length.
- tolerance
- Type: System.Single
The tolerance value. This method will return an approximation of the precise length.
The absolute error will be less than this tolerance.
Return Value
Type:
Single
The approximated length of the curve for the given parameter interval.
Implements
ICurve<TParam, TPoint>.GetLength(TParam, TParam, Int32, TParam)
Remarks
For some curves the length is computed with an iterative algorithm. The iterations end when
the maxNumberOfIterations were performed, or when the
tolerance criterion is met - whichever comes first.
See Also