Nevron Open Vision Documentation
NElectricalForce Class

The NElectricalForce class represents a vertices force, which simulates the electrical repulsion between two ellectrically charged particles.
Object Model
NElectricalForce Class
Public Class NElectricalForce 
   Inherits NForce
   Implements Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable 
Dim instance As NElectricalForce
public class NElectricalForce : NForce, Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable  
The ellectrical force magnitute is computed by the following formula:

RepulsionCoefficient * vertex1.ElectricalCharge * vertex2.ElectricalCharge / Math.Pow(distance, 2)

Provided that the electrical charges are equal in sign (which is the most common case), the ellectrical force is repulsive and decreases in an inverse square law as the distance between the vertices is increased.

The ElectricalCharge 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.

Inheritance Hierarchy



Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


NElectricalForce Members
Nevron.Nov.Diagram.Layout Namespace



©2021. Nevron Software LLC.

Send Feedback