コード例 #1
0
 public Charge(float charge, Physic.Position position, float radius)
 {
     this.m_charge = charge;
     this.m_position = position;
     this.m_radius = radius;
 }
コード例 #2
0
        public System.Collections.ArrayList get_positions()
        {
            System.Collections.ArrayList lst_of_points_of_grid = new System.Collections.ArrayList();

            for (float y=m_min.get_y()+m_space.get_y()/2 ; y<=m_max.get_y() ; y=y+m_space.get_y())
            {
                for (float x=m_min.get_x()+m_space.get_x()/2 ; x<=m_max.get_x() ; x=x+m_space.get_x())
                {
                    Physic.Position myPosition = new Physic.Position(x,y,0);
                    lst_of_points_of_grid.Add(myPosition);
                }
            }

            return lst_of_points_of_grid;
        }
コード例 #3
0
 //private int mode = 0; // E=0 B=1
 public void set_position(Physic.Position position)
 {
     m_position = position;
 }