Returns the charge of the point representing the ForceDirectedVertex node. A node L and a node V are acted upon by a force of magnitude (ElectricalCharge(L) * ElectricalCharge(V)) / (GetNodeDistance(L,V) * GetNodeDistance(L,V))
. A node L is acted upon by forces in the X and Y directions of magnitude ElectricalFieldX(L.position) * ElectricalCharge(L)
and ElectricalFieldY(L.position) * ElectricalCharge(L)
.
Syntax
Parameters
- v
Return Value
Returns the charge of the node, normally the value of
DefaultElectricalCharge, unless the value of
ForceDirectedVertex.Charge had already been set, in which case it just returns that value.
See Also