public Physic.Electrostatic_field real_to_screen(Physic.Electrostatic_field E_real) { Physic.Electrostatic_field E_screen = new Physic.Electrostatic_field(); E_screen.set_x ( real_to_screen( E1_real.get_x(), E1_screen.get_x(), E2_real.get_x(), E2_screen.get_x(), E_real.get_x()) ); E_screen.set_y ( real_to_screen( E1_real.get_y(), E1_screen.get_y(), E2_real.get_y(), E2_screen.get_y(), E_real.get_y()) ); E_screen.set_z ( real_to_screen( E1_real.get_z(), E1_screen.get_z(), E2_real.get_z(), E2_screen.get_z(), E_real.get_z()) ); E_screen.apply_to.set_x ( real_to_screen( E1_real.apply_to.get_x(), E1_screen.apply_to.get_x(), E2_real.apply_to.get_x(), E2_screen.apply_to.get_x(), E_real.apply_to.get_x()) ); E_screen.apply_to.set_y ( real_to_screen( E1_real.apply_to.get_y(), E1_screen.apply_to.get_y(), E2_real.apply_to.get_y(), E2_screen.apply_to.get_y(), E_real.apply_to.get_y()) ); E_screen.apply_to.set_z ( real_to_screen( E1_real.apply_to.get_z(), E1_screen.apply_to.get_z(), E2_real.apply_to.get_z(), E2_screen.apply_to.get_z(), E_real.apply_to.get_z()) ); return E_screen; }
public Physic.Electrostatic_field screen_to_real(Physic.Electrostatic_field E_screen) { Physic.Electrostatic_field E_real = new Physic.Electrostatic_field(); E_real.set_x ( screen_to_real( E1_screen.get_x(), E1_real.get_x(), E2_screen.get_x(), E_real.get_x(), E_screen.get_x()) ); E_real.set_y ( screen_to_real( E1_screen.get_y(), E1_real.get_y(), E2_screen.get_y(), E_real.get_y(), E_screen.get_y()) ); E_real.set_z ( screen_to_real( E1_screen.get_z(), E1_real.get_z(), E2_screen.get_z(), E_real.get_z(), E_screen.get_z()) ); E_real.apply_to.set_x ( screen_to_real( E1_screen.apply_to.get_x(), E1_real.apply_to.get_x(), E2_screen.apply_to.get_x(), E_real.apply_to.get_x(), E_screen.apply_to.get_x()) ); E_real.apply_to.set_y ( screen_to_real( E1_screen.apply_to.get_y(), E1_real.apply_to.get_y(), E2_screen.apply_to.get_y(), E_real.apply_to.get_y(), E_screen.apply_to.get_y()) ); E_real.apply_to.set_z ( screen_to_real( E1_screen.apply_to.get_z(), E1_real.apply_to.get_z(), E2_screen.apply_to.get_z(), E_real.apply_to.get_z(), E_screen.apply_to.get_z()) ); return E_real; }