Axis-aligned bounding box intersection test.
Most 2D collision starts with axis-aligned bounding boxes:
```csharp
record struct Rect(float X, float Y, float W, float H);
static bool Intersects(Rect a, Rect b)
=> a.X < b.X + b.W && a.X + a.W > b.X
&& a.Y < b.Y + b.H && a.Y + a.H > b.Y;
```
Implement that and call it on two rectangles.Sign in to save your code and track progress across devices.