Nevron.Diagram Assembly > Nevron.Diagram.Layout Namespace : NBarycenterForce Class |
'Declaration
Public Class NBarycenterForce Inherits NForce Implements Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider
'Usage
Dim instance As NBarycenterForce
public class NBarycenterForce : NForce, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider
vertex1Force = AttractionCoefficient * vertex1.Mass / (vertex1.Mass + vertex2.Mass)
vertex2Force = AttractionCoefficient * vertex2.Mass / (vertex1.Mass + vertex2.Mass)
The Mass parameter can be specified on a per vertex basis. If a vertex does not provide a concrete value for this parameter it is by default considered to be 1.
System.Object
Nevron.Dom.NAttribute
Nevron.Diagram.Layout.NForce
Nevron.Diagram.Layout.NBarycenterForce
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