Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 2ba1c94b88
commit ee9aee0a1b
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
namespace MoreMountains.Tools
{
/// <summary>
/// Rect extensions
/// </summary>
public static class RectExtensions
{
/// <summary>
/// Returns true if this rectangle intersects the other specified rectangle
/// </summary>
/// <param name="thisRectangle"></param>
/// <param name="otherRectangle"></param>
/// <returns></returns>
public static bool MMIntersects(this Rect thisRectangle, Rect otherRectangle)
{
return !((thisRectangle.x > otherRectangle.xMax) || (thisRectangle.xMax < otherRectangle.x) || (thisRectangle.y > otherRectangle.yMax) || (thisRectangle.yMax < otherRectangle.y));
}
}
}