Click or drag to resize

GdiExtensionMethodsGetFractionalIndexFromDistanceFromEndOfPartialPolylineCurve Method

Gets the fractional index into points of a partial polyline by searching a point along the partial polyline that has a specified distance to the end point of the partial polyline.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double GetFractionalIndexFromDistanceFromEndOfPartialPolylineCurve(
	PointF[] points,
	int firstBoundIndex,
	int endStartIndex,
	double distanceFromEnd
)

Parameters

points  PointF
The points of the global polyline curve. From this points only the partial polyline (indices firstBoundIndex .. endStartIndex) is considered.
firstBoundIndex  Int32
The first index of the partial polyline curve that is considered here.
endStartIndex  Int32
The last valid index of the partial polyline curve that is considered here.
distanceFromEnd  Double
The distance from the end of the partial polyline curve, i.e. from the points[endStartIndex].

Return Value

Double
The fractional index of the global polyline curve where the point at this fractional index has a distance of distanceFromEnd from the point at index endStartIndex. The return value is in the range [firstBoundIndex .. endStartIndex]. If no such point is found, then double.NaN is returned.
See Also