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()); }
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()); }