GdiExtensionMethodsGetFractionalIndexFromDistanceFromStartOfPolylineCurve Method |
Gets the fractional index into points of a polyline by searching a point along the polyline that has a specified distance to the start point of the polyline.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double GetFractionalIndexFromDistanceFromStartOfPolylineCurve(
PointF[] points,
double distanceFromStart
)
Parameters
- points PointF
- The points of the polyline curve.
- distanceFromStart Double
- The distance to the start point of the polyline curve, i.e. to the point at index 0.
Return Value
DoubleThe fractional index of the global polyline curve where the point at this fractional index has a distance of
distanceFromStart to the start point at index 0.
The return value is in the range [0..points.Length-1]. If no such point is found, then double.NaN is returned.
See Also