Adding Contains overload for rectangles

This commit is contained in:
Benjamin Ward
2015-07-19 20:16:04 -04:00
parent 7d04221624
commit b47c49ab0e
@@ -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;
}
}
}