| StrokedSegmentTParam, TPointGetLength Method |
Computes the approximated length of the curve for the parameter interval
[start, end].
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public TParam GetLength(
TParam start,
TParam end,
int maxNumberOfIterations,
TParam tolerance
)
Public Function GetLength (
start As TParam,
end As TParam,
maxNumberOfIterations As Integer,
tolerance As TParam
) As TParam
public:
virtual TParam GetLength(
TParam start,
TParam end,
int maxNumberOfIterations,
TParam tolerance
) sealed
abstract GetLength :
start : 'TParam *
end : 'TParam *
maxNumberOfIterations : int *
tolerance : 'TParam -> 'TParam
override GetLength :
start : 'TParam *
end : 'TParam *
maxNumberOfIterations : int *
tolerance : 'TParam -> 'TParam
Parameters
- start
- Type: TParam
The parameter value of the start position. - end
- Type: TParam
The parameter value of the end position. - maxNumberOfIterations
- Type: SystemInt32
The maximum number of iterations which are taken to compute the length.
- tolerance
- Type: TParam
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:
TParam
The approximated length of the curve for the given parameter interval.
Implements
ICurveTParam, TPointGetLength(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