| 66 | } |
| 67 | |
| 68 | Rectangle Rectangle::Union(const Rectangle& a, const Float2& b) |
| 69 | { |
| 70 | const float left = Math::Min(a.GetLeft(), b.X); |
| 71 | const float right = Math::Max(a.GetRight(), b.X); |
| 72 | const float top = Math::Min(a.GetTop(), b.Y); |
| 73 | const float bottom = Math::Max(a.GetBottom(), b.Y); |
| 74 | return Rectangle(left, top, Math::Max(right - left, 0.0f), Math::Max(bottom - top, 0.0f)); |
| 75 | } |
| 76 | |
| 77 | Rectangle Rectangle::Union(const Rectangle& a, const Rectangle& b) |
| 78 | { |
no test coverage detected