chore!: renamed AABB to AABB2D
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user