示例#1
0
 public Entities(int count)
 {
     name       = new string[count];
     pos        = new Vectors3(count);
     v          = new Vectors3(count);
     mass       = new float[count];
     elasticity = new float[count];
     strength   = new float[count];
 }
示例#2
0
 public void Add(Vectors3 v)
 {
     unsafe
     {
         fixed(float *
               ax = &this.x[0],
               ay = &this.y[0],
               az = &this.z[0],
               bx = &v.x[0],
               by = &v.y[0],
               bz = &v.z[0])
         {
             for (int i = 0; i < this.x.Length; i++)
             {
                 ax[i] += bx[i];
                 ay[i] += by[i];
                 az[i] += bz[i];
             }
         }
     }
 }
示例#3
0
 public void SseAdd(Vectors3 v)
 {
     //tod
 }