Example #1
0
 public FBoxSphereBounds(FBox box)
 {
     box.GetCenterAndExtents(out Origin, out BoxExtent);
     SphereRadius = BoxExtent.Size();
 }
Example #2
0
 public FBoxSphereBounds(FBox box, FSphere sphere)
 {
     box.GetCenterAndExtents(out Origin, out BoxExtent);
     SphereRadius = Min(BoxExtent.Size(), (sphere.Center - Origin).Size() + sphere.W);
 }