Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void IsOneRectangleCollidingWhenInsideAnother() { var insideRect = new Rectangle(0.3f, 0.3f, 0.1f, 0.1f); var outsideRect = new Rectangle(0.2f, 0.2f, 0.3f, 0.3f); Assert.IsTrue(outsideRect.IsColliding(0, insideRect, 0)); Assert.IsTrue(outsideRect.IsColliding(0, insideRect, 70)); }
See Also