Beispiel #1
0
        public void AddCharges(Charge[] charges)
        {
            electricField = new Field(new Coord3d(-FieldWidth, -FieldWidth, -FieldWidth), new Coord3d(FieldWidth, FieldWidth, FieldWidth));

            electricField.AddCharges(charges);

            vertex = CalculateVertex();
        }
Beispiel #2
0
        public MainForm()
        {
            InitializeComponent();
            electricField = new Field(new Coord3d(-width, -width, -width), new Coord3d(width, width, width));

            electricField.AddCharges(new Charge(new Coord3d(0, 0, 0), 5, 4E-6), new Charge(new Coord3d(20, 0, 0), 5, -4E-6));

            gCtrl.Load    += GCtrl_Load;
            gCtrl.Paint   += GCtrl_Paint;
            gCtrl.KeyDown += GCtrl_KeyDown;
        }