Пример #1
0
        internal float SAHofPair(ssBVHNode <GO> nodea, ssBVHNode <GO> nodeb)
        {
            SSAABB box = nodea.box;

            box.expandToFit(nodeb.box);
            return(SAH(ref box));
        }
Пример #2
0
        internal float SAHofPair(SSAABB boxa, SSAABB boxb)
        {
            SSAABB pairbox = boxa;

            pairbox.expandToFit(boxb);
            return(SAH(ref pairbox));
        }
Пример #3
0
        internal SSAABB AABBofPair(ssBVHNode <GO> nodea, ssBVHNode <GO> nodeb)
        {
            SSAABB box = nodea.box;

            box.expandToFit(nodeb.box);
            return(box);
        }