Click or drag to resize

GdiExtensionMethodsGetFractionalIndexFromDistanceFromEndOfPolylineCurve Method

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

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

Parameters

points  PointF
The points of the polyline curve.
distanceFromEnd  Double
The distance from the end point of the polyline curve, i.e. from the point at index points].Length-1

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 points.Length-1. The return value is in the range [0..points.Length-1]. If no such points is found, then double.NaN is returned.
See Also