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

◆ IsSatisfiesRule()

bool Microsoft.Xna.Framework.Gjk.IsSatisfiesRule ( int xBits,
int yBits )
inlineprivate

Definition at line 175 of file Gjk.cs.

176 {
177 bool result = true;
178 for (int num = BitsToIndices[yBits]; num != 0; num >>= 3)
179 {
180 int num2 = (num & 7) - 1;
181 int num3 = 1 << num2;
182 if ((num3 & xBits) != 0)
183 {
184 if (det[xBits][num2] <= 0f)
185 {
186 result = false;
187 break;
188 }
189 }
190 else if (det[xBits | num3][num2] > 0f)
191 {
192 result = false;
193 break;
194 }
195 }
196 return result;
197 }
static int[] BitsToIndices
Definition Gjk.cs:8

References Microsoft.Xna.Framework.Gjk.BitsToIndices, and Microsoft.Xna.Framework.Gjk.det.

Referenced by Microsoft.Xna.Framework.Gjk.UpdateSimplex().