Beispiel #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);
 }
Beispiel #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);
 }