if (planeCounter != 5) { int i = bound.getCheckPlane(5); bound.setCheckPlane(5, bound.getCheckPlane(planeCounter));
if (planeCounter != FRUSTUM_PLANES-1) { int i = bound.getCheckPlane(FRUSTUM_PLANES-1); bound.setCheckPlane(FRUSTUM_PLANES-1, bound.getCheckPlane(planeCounter));
  public int contains(BoundingVolume bound) {    if (bound == null) {      return INSIDE_FRUSTUM;    }    int planeCounter = 5;    int mask = 1 << planeCounter;    int rVal = INSIDE_FRUSTUM;    for (; planeCounter >= 0; planeCounter--, mask >>= 1) {      if ( (planeState & mask) == 0) {        int side = bound.whichSide(worldPlane[bound.getCheckPlane(planeCounter)]);        if (side == Plane.NEGATIVE_SIDE) {          //object is outside of frustum          if (planeCounter != 5) {            int i = bound.getCheckPlane(5);            bound.setCheckPlane(5, bound.getCheckPlane(planeCounter));            bound.setCheckPlane(planeCounter, i);          }          return OUTSIDE_FRUSTUM;        } else if (side == Plane.POSITIVE_SIDE) {          //object is visible on *this* plane, so mark this plane          //so that we don't check it for sub nodes.          planeState |= mask;        } else {          rVal = INTERSECTS_FRUSTUM;        }      }    }    return rVal;  }