Example #1
0
 public FBoxSphereBounds(FBox box)
 {
     box.GetCenterAndExtents(out Origin, out BoxExtent);
     SphereRadius = BoxExtent.Size();
 }
Example #2
0
 public bool Equals(FBox other)
 {
     return(Min.Equals(other.Min) && Max.Equals(other.Max));
 }
Example #3
0
 public FBoxSphereBounds(FBox box, FSphere sphere)
 {
     box.GetCenterAndExtents(out Origin, out BoxExtent);
     SphereRadius = Min(BoxExtent.Size(), (sphere.Center - Origin).Size() + sphere.W);
 }
Example #4
0
 public FBox(FBox box)
 {
     Min     = box.Min;
     Max     = box.Max;
     IsValid = box.IsValid;
 }