Exemple #1
0
 /// <summary>
 /// Returns the bounding box containing this box and the given box.
 /// </summary>
 public void Enlarge(Box3f box)
 {
     Min.x = Math.Min(Min.x, box.Min.x);
     Min.y = Math.Min(Min.y, box.Min.y);
     Min.z = Math.Min(Min.z, box.Min.z);
     Max.x = Math.Max(Max.x, box.Max.x);
     Max.y = Math.Max(Max.y, box.Max.y);
     Max.z = Math.Max(Max.z, box.Max.z);
 }
 public Box3f(Box3f box)
 {
     Min = box.Min;
     Max = box.Max;
 }