Exemple #1
0
 /// <summary>Combine two AABBs into this one.</summary>
 /// <param name="aabb1">The aabb1.</param>
 /// <param name="aabb2">The aabb2.</param>
 public void Combine(ref Aabb aabb1, ref Aabb aabb2)
 {
     LowerBound = Vector2.Min(aabb1.LowerBound, aabb2.LowerBound);
     UpperBound = Vector2.Max(aabb1.UpperBound, aabb2.UpperBound);
 }
Exemple #2
0
 /// <summary>Combine an AABB into this one.</summary>
 /// <param name="aabb">The AABB.</param>
 public void Combine(ref Aabb aabb)
 {
     LowerBound = Vector2.Min(LowerBound, aabb.LowerBound);
     UpperBound = Vector2.Max(UpperBound, aabb.UpperBound);
 }