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