Piccolo.NET

PNavigationEventHandler.SortNodesByDistanceFromPoint Method 

Sorts the given list of nodes by their distance from the given point. Nodes closest to the point will be placed first in the list.

public virtual void SortNodesByDistanceFromPoint(
   PNodeList aNodesList,
   PointF aPoint
);

Parameters

aNodesList
The list to sort.
aPoint
The point to use for the comparison.

See Also

PNavigationEventHandler Class | UMD.HCIL.PiccoloX.Events Namespace