Class DistanceClusterStrategy
Inheritance
System.Object
DistanceClusterStrategy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class DistanceClusterStrategy : IMapClusterStrategy
Constructors
DistanceClusterStrategy()
Declaration
public DistanceClusterStrategy()
Methods
GenerateClusters(IEnumerable<IClusterable>, Int64, IMapViewport)
Generates the clusters.
Declaration
public virtual List<MapCluster> GenerateClusters(IEnumerable<IClusterable> items, long distance, IMapViewport viewport)
Parameters
System. The items. |
System. The distance. |
IMap The viewport. |
Returns
System. List<Cluster>. |
Implements
GetCoordinatesAverage(IList<IClusterable>)
Gets the coordinates average of all items in the cluster.
Declaration
protected virtual PointG GetCoordinatesAverage(IList<IClusterable> cluster)
Parameters
System. The cluster. |
Returns
Point PointG. |
GetSquareDistance(PointL, PointL)
Gets the square distance between two points.
Declaration
protected virtual double GetSquareDistance(PointL location1, PointL location2)
Parameters
Returns
System. System.Double. |