コード例 #1
0
        internal override float MeasureSubtreeCost()
        {
            Vector3 offset;

            Vector3.Subtract(ref BoundingBox.Max, ref BoundingBox.Min, out offset);
            return(offset.X * offset.Y * offset.Z + ChildA.MeasureSubtreeCost() + childB.MeasureSubtreeCost());
        }
コード例 #2
0
        internal override Fix64 MeasureSubtreeCost()
        {
            Vector3 offset;

            Vector3.Subtract(ref BoundingBox.Max, ref BoundingBox.Min, out offset);
            return(Fix64.SafeMul(Fix64.SafeMul(offset.X, offset.Y), offset.Z) + ChildA.MeasureSubtreeCost() + childB.MeasureSubtreeCost());
        }