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

◆ GetAverage()

Vector4 ReLogic.Peripherals.RGB.Fragment.GetAverage ( )
inline

Definition at line 111 of file Fragment.cs.

112 {
113 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
114 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
115 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
116 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
117 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
118 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
119 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
120 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
121 Vector4 zero = Vector4.Zero;
122 for (int i = 0; i < Colors.Length; i++)
123 {
124 zero += Colors[i];
125 }
126 return zero / (float)Colors.Length;
127 }
readonly Vector4[] Colors
Definition Fragment.cs:8

References ReLogic.Peripherals.RGB.Fragment.Colors, Microsoft.Xna.Framework.Vector4.Length(), and Microsoft.Xna.Framework.Vector4.Zero.