Exemple #1
0
 // Token: 0x06000028 RID: 40 RVA: 0x00002828 File Offset: 0x00000A28
 public void Reshuffle()
 {
     for (int i = 0; i < this.indices.Length; i++)
     {
         this.indices[i] = i;
         int num  = (int)SamMath.RandomRange(0f, (float)i);
         int num2 = this.indices[i];
         this.indices[i]   = this.indices[num];
         this.indices[num] = num2;
     }
 }
Exemple #2
0
 public void Reshuffle()
 {
     for (int j = 0; j < indices.Length; j++)
     {
         indices[j] = j;
         int otherIndex = (int)SamMath.RandomRange(0, j);
         int temp       = indices[j];
         indices[j]          = indices[otherIndex];
         indices[otherIndex] = temp;
     }
 }
Exemple #3
0
 // Token: 0x06000033 RID: 51 RVA: 0x000029DC File Offset: 0x00000BDC
 public static Vector2 Lerp(Vector2 a, Vector2 b, float p)
 {
     return(new Vector2(SamMath.Lerp(a.x, b.x, p), SamMath.Lerp(a.y, b.y, p)));
 }