Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Expand3x3()

void Terraria.Utilities.Vertical64BitStrips.Expand3x3 ( )
inline

Definition at line 32 of file Vertical64BitStrips.cs.

33 {
34 for (int i = 0; i < arr.Length - 1; i++)
35 {
36 ref Bits64 reference = ref arr[i];
37 reference = (ulong)reference | (ulong)arr[i + 1];
38 }
39 for (int num = arr.Length - 1; num > 0; num--)
40 {
41 ref Bits64 reference2 = ref arr[num];
42 reference2 = (ulong)reference2 | (ulong)arr[num - 1];
43 }
44 for (int j = 0; j < arr.Length; j++)
45 {
46 Bits64 bits = arr[j];
47 arr[j] = ((ulong)bits << 1) | (ulong)bits | ((ulong)bits >> 1);
48 }
49 }

References Terraria.Utilities.Vertical64BitStrips.arr.