PlotPointCollectionClosestPoint Method

Return 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 FVector2 ClosestPoint(
	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

FVector2
Reference to the member of the points location closest to the specified location, if found. Otherwise, null.

See Also