BoundingBoxTests IntersectBoundingBoxWithBoundingBox 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 IntersectBoundingBoxWithBoundingBox()
Examples

[Test]
public void IntersectBoundingBoxWithBoundingBox()
{
    var box1 = new BoundingBox(Vector3D.Zero, Vector3D.One);
    var box2 = new BoundingBox(Vector3D.One / 2, Vector3D.One);
    Assert.IsTrue(box1.IsColliding(box2));
    var box3 = new BoundingBox(Vector3D.One * 2, Vector3D.One);
    Assert.IsFalse(box1.IsColliding(box3));
}
See Also