unsafe void PushPair(int encodedLeafIndex, BoundingBox *leafBounds, int b, PairToTest *stack, ref int nextToVisit) { //Potential microoptimizations here stack[++nextToVisit] = new PairToTest { A = encodedLeafIndex, B = b, LeafBounds = leafBounds }; }
unsafe void PushPair(int a, int b, PairToTest *stack, ref int nextToVisit) { //Potential microoptimizations here stack[++nextToVisit] = new PairToTest { A = a, B = b }; }