Compares the distance to a given reference point.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Diagrams.dll
Syntax:
C#
public class DistanceToPointComparer : IComparer<Point>
Inheritance: objectDistanceToPointComparer
Implements:
Constructors
Initializes a new instance of the DistanceToPointComparer class.
C#
public DistanceToPointComparer(Point referencePoint)
The point which sets the reference to which the other points are compared.
Properties
ReferencePoint
Point
Gets or sets the reference point with respect to which the ordering occurs.
C#
public Point ReferencePoint { get; set; }
Methods
Compares the specified left.
C#
public int Compare(Point x, Point y)
A point.
yPointAnother point to compare the first one with.
Returns:Implements: