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