PlotPointCollectionClosestPointIndex Method

Return the index of the closest point to the provided location from the supplied collection of points.

Definition

Namespace: SvgPlotting
Assembly: SvgPlotting (in SvgPlotting.dll) Version: 25.2714.4126
C#
public static int ClosestPointIndex(
	FVector2 location,
	PlotPointCollection points
)

Parameters

location  FVector2
Reference to the location to match or approximate.
points  PlotPointCollection
Reference to the collection of points to test.

Return Value

Int32
Index of the member of the points location closest to the specified location, if found. Otherwise, -1.

See Also