internal override void GetOverlaps(ref BoundingBox boundingBox, IList<int> outputOverlappedElements)
{
//Users of the GetOverlaps method will have to check the bounding box before calling
//root.getoverlaps. This is actually desired in some cases, since the outer bounding box is used
//to determine a pair, and further overlap tests shouldn't bother retesting the root.
bool intersects;
ChildA.BoundingBox.Intersects(ref boundingBox, out intersects);
if (intersects)
ChildA.GetOverlaps(ref boundingBox, outputOverlappedElements);
ChildB.BoundingBox.Intersects(ref boundingBox, out intersects);
if (intersects)
ChildB.GetOverlaps(ref boundingBox, outputOverlappedElements);
}