BEPUphysics.DataStructures.MeshBoundingBoxTree.InternalNode.GetOverlaps C# (CSharp) Метод

GetOverlaps() приватный Метод

private GetOverlaps ( Microsoft.Xna.Framework.BoundingBox &boundingBox, IList outputOverlappedElements ) : void
boundingBox Microsoft.Xna.Framework.BoundingBox
outputOverlappedElements IList
Результат 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);
            }

Same methods

MeshBoundingBoxTree.InternalNode::GetOverlaps ( BoundingFrustum &boundingFrustum, IList outputOverlappedElements ) : void
MeshBoundingBoxTree.InternalNode::GetOverlaps ( BoundingSphere &boundingSphere, IList outputOverlappedElements ) : void
MeshBoundingBoxTree.InternalNode::GetOverlaps ( Microsoft.Xna.Framework.Ray &ray, float maximumLength, IList outputOverlappedElements ) : void