RectangleTests IsCollidingTopBottom Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void IsCollidingTopBottom()
Examples

[Test]
public void IsCollidingTopBottom()
{
    var topRect = new Rectangle(0.44f, 0.4f, 0.05f, 0.03f);
    var bottomRect = new Rectangle(0.44f, 0.44f, 0.04f, 0.03f);
    Assert.IsFalse(topRect.IsColliding(0, bottomRect, 0));
    Assert.IsFalse(bottomRect.IsColliding(0, topRect, 0));
}
See Also