/// <summary> /// 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. /// </summary> /// <param name="aNodesList">The list to sort.</param> /// <param name="aPoint">The point to use for the comparison.</param> public virtual void SortNodesByDistanceFromPoint(PNodeList aNodesList, PointF aPoint) { aNodesList.Sort(new DistanceFromPointComparer(aPoint)); }