GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutForceDirected Class / GravitationalMass Method
In This Topic
    GravitationalMass Method
    In This Topic
    The function GravitationalMass returns the mass of the point representing the GoLayoutForceDirectedNode node. A node L is acted upon by forces in the X and Y directions of magnitude GravitationalFieldX(L.position) * GravitationalMass(L) and GravitationalFieldY(L.position) * GravitationalMass(L).
    Syntax
    protected virtual float GravitationalMass( 
       GoLayoutForceDirectedNode node
    )

    Parameters

    node

    Return Value

    Returns the mass of node, normally the value of DefaultGravitationalMass, unless the value of GoLayoutForceDirectedNode.Mass had already been set, in which case it just returns that value.
    See Also