mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-21 01:39:32 +00:00
Adding Contains overload for rectangles
This commit is contained in:
@@ -100,7 +100,7 @@ namespace MonoGame.Extended
|
||||
|
||||
public bool Contains(Rectangle rectangle)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
return GetBoundingFrustum().Contains(new BoundingBox(new Vector3(0, 0, 0), new Vector3(15, 15, 0))) != ContainmentType.Disjoint;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user