chore!: renamed AABB to AABB2D

This commit is contained in:
2025-10-19 18:33:01 +03:00
parent 61ff0887e2
commit 1d63391975
11 changed files with 165 additions and 165 deletions

View File

@@ -68,11 +68,11 @@ public static class Physics2D
return isOverlapping;
}
public static bool Overlaps(this AABB aabb, Vector2D point)
public static bool Overlaps(this AABB2D aabb, Vector2D point)
=> point.X >= aabb.LowerBoundary.X && point.X <= aabb.UpperBoundary.X &&
point.Y >= aabb.LowerBoundary.Y && point.Y <= aabb.UpperBoundary.Y;
public static bool Overlaps(this AABB left, AABB right)
public static bool Overlaps(this AABB2D left, AABB2D right)
=> left.LowerBoundary.X <= right.UpperBoundary.X && left.UpperBoundary.X >= right.LowerBoundary.X &&
left.LowerBoundary.Y <= right.UpperBoundary.Y && left.UpperBoundary.Y >= right.LowerBoundary.Y;