/// <summary>Checks whether this bounding box intersects another bounding box.</summary> public bool Intersects(QuadBounds other) { if (IsEmpty || other.IsEmpty) { return false; } return ((((other.Left <= Right) && (other.Right >= Left)) && (other.Top <= Bottom)) && (other.Bottom >= Top)); }
/// <summary>Checks whether this bounding box contains another bounding box.</summary> public bool Contains(QuadBounds other) { if (IsEmpty || other.IsEmpty) { return false; } return ((((Left <= other.Left) && (Top <= other.Top)) && (Right >= other.Right)) && (Bottom >= other.Bottom)); }