Nevron.Nov.Diagram.Layout Namespace : NDesiredDistanceForce Class |
'Declaration
Public Class NDesiredDistanceForce Inherits NForce Implements Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable
'Usage
Dim instance As NDesiredDistanceForce
public class NDesiredDistanceForce : NForce, Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable
AttractionCoefficient * Math.Pow(distance, 2) / Math.Pow(DesiredDistance, 2)
The repulsion force magnitute is computed by the following formula:
RepulsionCoefficient * Math.Pow(DesiredDistance, 2) / Math.Pow(distance, 2)
Provided that the RepulsionCoefficient and AttractionCoefficient are equal, the two forces balance each other at DesiredDistance.
System.Object
Nevron.Nov.Dom.NNode
Nevron.Nov.Dom.NDocumentNode
Nevron.Nov.Dom.NAttribute
Nevron.Nov.Layout.NLayoutComponent
Nevron.Nov.Diagram.Layout.NForce
Nevron.Nov.Diagram.Layout.NDesiredDistanceForce
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2