DiagramLite Programmer's Guide
RoutingOptions.DistSquare Property
See Also
 





Gets a heuristic delegate function that returns the square distance dx^2 + dy^2 as a cost evaluation of the distance between two pieces of the routing grid.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public static RouteHeuristics DistSquare { get; }

Visual Basic  Copy Code

Public Shared ReadOnly Property DistSquare As RouteHeuristics

 Property Value

A predefined RouteHeuristics delegate instance.

 Remarks

DistSquare is a predefined delegate that assigns to pieces a heuristic value equaling the piece distance to the target raised to the second power. DistSquare can be assigned to the RouteHeuristics property. By returning larger values than the default heuristic function Distance, it makes the prediction part of the routing algorithm have greater impact on the evaluated routes.That would lead to faster path-finding, but the real cost functions might have less impact and thus the quality of the found routes could be low.

 See Also

RoutingOptions Members
RoutingOptions Class
MindFusion.Diagramming Namespace