private GetOverlaps ( Microsoft.Xna.Framework.BoundingBox &boundingBox, IList |
||
boundingBox | Microsoft.Xna.Framework.BoundingBox | |
outputOverlappedElements | IList |
|
return | void |
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);
}
MeshBoundingBoxTree.InternalNode::GetOverlaps ( BoundingFrustum &boundingFrustum, IList |
|
MeshBoundingBoxTree.InternalNode::GetOverlaps ( BoundingSphere &boundingSphere, IList |
|
MeshBoundingBoxTree.InternalNode::GetOverlaps ( Microsoft.Xna.Framework.Ray &ray, float maximumLength, IList |